Skip to content

Commit eedc9ce

Browse files
authored
Create snyk-container-analysis.yml (#12)
* Create snyk-container-analysis.yml * Update snyk-container-analysis.yml * Update snyk-container-analysis.yml * Update snyk-container-analysis.yml * Update snyk-container-analysis.yml * Update snyk-container-analysis.yml * Update snyk-container-analysis.yml
1 parent 91064cd commit eedc9ce

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# A sample workflow which checks out the code, builds a container
2+
# image using Docker and scans that image for vulnerabilities using
3+
# Snyk. The results are then uploaded to GitHub Security Code Scanning
4+
#
5+
# For more examples, including how to limit scans to only high-severity
6+
# issues, monitor images for newly disclosed vulnerabilities in Snyk and
7+
# fail PR checks for new vulnerabilities, see https://github.com/snyk/actions/
8+
9+
name: Snyk Container
10+
11+
on:
12+
push:
13+
branches: [ master ]
14+
pull_request:
15+
branches: [ master ]
16+
17+
jobs:
18+
snyk:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Run Snyk to check Docker image for vulnerabilities
23+
continue-on-error: true
24+
uses: snyk/actions/docker@master
25+
env:
26+
# In order to use the Snyk Action you will need to have a Snyk API token.
27+
# More details in https://github.com/snyk/actions#getting-your-snyk-token
28+
# or you can signup for free at https://snyk.io/login
29+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
30+
with:
31+
image: xianpengshen/clang-tools:all
32+
args: --severity-threshold=high --file=all/Dockerfile
33+
- name: Upload result to GitHub Code Scanning
34+
uses: github/codeql-action/upload-sarif@v1
35+
with:
36+
sarif_file: snyk.sarif

0 commit comments

Comments
 (0)