Skip to content

Commit 6ebc5f5

Browse files
authored
fix: update snyk-container-analysis.yml (#109)
1 parent a4bbd75 commit 6ebc5f5

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/snyk-container-analysis.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,33 @@ on:
1313
branches: [ master ]
1414
paths:
1515
- 'Dockerfile*'
16+
- '.github/workflows/snyk-container-analysis.yml'
1617
pull_request:
1718
branches: [ master ]
1819
paths:
1920
- 'Dockerfile*'
21+
- '.github/workflows/snyk-container-analysis.yml'
2022

2123
jobs:
2224
snyk:
23-
uses: cpp-linter/.github/.github/workflows/snyk-container.yml@main
24-
secrets: inherit
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
28+
with:
29+
persist-credentials: false
30+
- name: Run Snyk to check Docker image for vulnerabilities
31+
continue-on-error: true
32+
uses: snyk/actions/docker@9adf32b1121593767fc3c057af55b55db032dc04 # v1.0.0
33+
env:
34+
# In order to use the Snyk Action you will need to have a Snyk API token.
35+
# More details in https://github.com/snyk/actions#getting-your-snyk-token
36+
# or you can sign up for free at https://snyk.io/login
37+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
38+
with:
39+
image: xianpengshen/clang-tools:21
40+
args: --severity-threshold=high --file=Dockerfile
41+
42+
- name: Upload result to GitHub Code Scanning
43+
uses: github/codeql-action/upload-sarif@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
44+
with:
45+
sarif_file: snyk.sarif

0 commit comments

Comments
 (0)