Skip to content

Commit 67da5eb

Browse files
committed
Update the sarif actions
1 parent 335fb23 commit 67da5eb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ jobs:
1919
# The type of runner that the job will run on
2020
runs-on: ubuntu-latest
2121

22+
permissions:
23+
contents: read
24+
security-events: write
25+
2226
# Steps represent a sequence of tasks that will be executed as part of the job
2327
steps:
2428
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -76,14 +80,14 @@ jobs:
7680

7781
- name: Scan the image
7882
id: scan
79-
uses: anchore/scan-action@v3
83+
uses: anchore/scan-action@v7
8084
with:
8185
image: "mendhak/http-https-echo:testing"
8286
output-format: sarif
8387
# severity-cutoff: critical
8488
fail-build: false
8589

8690
- name: upload Anchore scan SARIF report
87-
uses: github/codeql-action/upload-sarif@v3
91+
uses: github/codeql-action/upload-sarif@v4
8892
with:
8993
sarif_file: ${{ steps.scan.outputs.sarif }}

0 commit comments

Comments
 (0)