File tree 1 file changed +40
-0
lines changed
1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ # SPDX-License-Identifier: BSD-3-Clause
3
+ # Copyright (c) Contributors to the OpenEXR Project.
4
+
5
+ name : Snyk Scan Code
6
+
7
+ on :
8
+ # https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions
9
+ schedule :
10
+ - cron : " 0 4 * * 0"
11
+
12
+ jobs :
13
+ snyk-scan-pr :
14
+ runs-on : ubuntu-latest
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - uses : snyk/actions/setup@master
19
+ id : snyk
20
+
21
+ - name : Snyk version
22
+ run : echo "${{ steps.snyk.outputs.version }}"
23
+
24
+ - name : Snyk Auth
25
+ run : snyk auth ${{ secrets.SNYK_TOKEN }}
26
+
27
+ - name : Snyk Scan Code
28
+ # Scan the C/C++ code for vulnerabilities using the Snyk CLI with the unmanaged flag
29
+ # https://docs.snyk.io/scan-using-snyk/supported-languages-and-frameworks/c-c++ for options
30
+ run : snyk test --unmanaged --print-dep-paths --org=${{ secrets.SNYK_ORG }}
31
+ env :
32
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
33
+ continue-on-error : true # optional
34
+
35
+ - name : Monitor for Vulnerabilities
36
+ # To import the test results (issues and dependencies) in the Snyk CLI, run the snyk monitor --unmanaged command:
37
+ run : snyk monitor --unmanaged --org=${{ secrets.SNYK_ORG }}
38
+ env :
39
+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
40
+ continue-on-error : true # optional
You can’t perform that action at this time.
0 commit comments