Bump @mikro-orm/cli from 5.9.3 to 5.9.4 #340
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Publish image to GHCR on push and (scheduled) trivy" | |
# All triggers have to be in one file, so that the trivy results can be compared to identify introduced vulnerabilities | |
# See DBP-340 | |
on: | |
push: | |
schedule: | |
- cron: '0 2 * * *' | |
concurrency: | |
group: dbildungs-iam-server-${{ github.event_name }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
jobs: | |
codeql_analyze: | |
name: "CodeQL" | |
if: ${{ github.event_name == 'push' }} | |
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/[email protected] | |
permissions: | |
actions: read | |
contents: read | |
security-events: write | |
nest_lint: | |
name: "Linting" | |
if: ${{ github.event_name == 'push' }} | |
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/[email protected] | |
with: | |
node_version: '18' | |
permissions: | |
contents: read | |
tests_and_sonarcloud: | |
name: "Tests and Sonarcloud" | |
if: ${{ github.event_name == 'push' }} | |
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/[email protected] | |
with: | |
node_version: '18' | |
deploy_stage: 'dev' | |
permissions: | |
contents: read | |
secrets: inherit | |
build_image_on_push: | |
name: "Publish image and scan with trivy" | |
if: ${{ github.event_name == 'push' }} | |
needs: | |
- codeql_analyze | |
- nest_lint | |
- tests_and_sonarcloud | |
permissions: | |
packages: write | |
security-events: write | |
contents: read | |
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/[email protected] | |
with: | |
image_name: "dbildungs-iam-server" | |
run_trivy_scan: true | |
tag_generation: ${{ ( github.ref_name == 'main' || startsWith(github.ref_name,'dependabot/') ) && 'commit_hash' || 'ticket_from_branch' }} | |
add_latest_tag: ${{ github.ref_name == 'main' }} | |
container_registry: "ghcr.io" | |
fail_on_vulnerabilites: true | |
report_location: "Dockerfile" | |
scheduled_trivy_scan: | |
name: "Scheduled trivy scan of latest image" | |
if: ${{ github.event_name == 'schedule' }} | |
permissions: | |
packages: read | |
security-events: write | |
uses: dBildungsplattform/dbp-github-workflows/.github/workflows/[email protected] | |
with: | |
image_ref: 'ghcr.io/${{ github.repository_owner }}/dbildungs-iam-server:latest' | |
fail_on_vulnerabilites: false | |
report_location: "Dockerfile" |