Skip to content

Commit

Permalink
fix: sarif
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuba Wolynko committed Jun 4, 2024
1 parent 2ac925d commit f2f2064
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ on:
tags:
- '*'

defaults:
run:
shell: bash

permissions:
contents: read

jobs:
build-push:
Expand Down Expand Up @@ -36,6 +36,9 @@ jobs:
VERSION=${{ github.ref_name }}
analysis:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
needs: build-push
name: Vulnerability scanner for containers
runs-on: ubuntu-latest
Expand All @@ -51,6 +54,6 @@ jobs:
timeout: 15m

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: 'trivy-results.sarif'

0 comments on commit f2f2064

Please sign in to comment.