Skip to content

Commit

Permalink
Legg til Trivy scan
Browse files Browse the repository at this point in the history
  • Loading branch information
ahusby committed Nov 15, 2024
1 parent 0a1205f commit 35f50e7
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
team: toi
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
tag: ${{ contains(fromJSON('["refs/heads/master", "refs/heads/main"]'), github.ref) && 'latest' || github.sha }}

deploy-til-dev:
name: Deploy til dev
Expand All @@ -66,3 +67,13 @@ jobs:
CLUSTER: prod-gcp
RESOURCE: nais-prod.yaml
VAR: image=${{ needs.bygg-og-push-docker-image.outputs.image }}

call-trivy-security-scan:
needs: bygg-og-push-docker-image
uses: navikt/toi-github-actions-workflows/.github/workflows/trivy-security-scan.yaml@main
with:
image: ${{ needs.bygg-og-push-docker-image.outputs.image }}
permissions:
id-token: write
security-events: write
secrets: inherit
12 changes: 12 additions & 0 deletions .github/workflows/security-scan.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Trivy security scan
on:
schedule:
- cron: '40 5 * * 1'

jobs:
call-trivy-security-scan:
uses: navikt/toi-github-actions-workflows/.github/workflows/trivy-security-scan.yaml@main
permissions:
id-token: write
security-events: write
secrets: inherit

0 comments on commit 35f50e7

Please sign in to comment.