File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # A sample workflow which checks out your Infrastructure as Code Configuration files,
2+ # such as Kubernetes, Helm & Terraform and scans them for any security issues.
3+ # The results are then uploaded to GitHub Security Code Scanning
4+ #
5+ # For more examples, including how to limit scans to only high-severity issues
6+ # and fail PR checks, see https://github.com/snyk/actions/
7+
8+ name : Snyk Infrastructure as Code
9+
10+ on :
11+ push :
12+ branches : [ "main", "DSSRF_Branch_Rule" ]
13+ pull_request :
14+ # The branches below must be a subset of the branches above
15+ branches : [ "main" ]
16+ schedule :
17+ - cron : ' 21 15 * * 4'
18+
19+ permissions :
20+ contents : read
21+
22+ jobs :
23+ snyk :
24+ permissions :
25+ contents : read # for actions/checkout to fetch code
26+ security-events : write # for github/codeql-action/upload-sarif to upload SARIF results
27+ actions : read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
28+ runs-on : ubuntu-latest
29+ steps :
30+ - uses : actions/checkout@0c366fd6a839edf440554fa01a7085ccba70ac98
31+ - name : Run Snyk to check configuration files for security issues
32+ # Snyk can be used to break the build when it detects security issues.
33+ # In this case we want to upload the issues to GitHub Code Scanning
34+ continue-on-error : true
35+ uses : snyk/actions/iac@14818c4695ecc4045f33c9cee9e795a788711ca4
36+ env :
37+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
38+ - name : Upload result to GitHub Code Scanning
39+ uses : github/codeql-action/upload-sarif@7434149006143a4d75b82a2f411ef15b03ccc2d7
40+ with :
41+ sarif_file : snyk.sarif
You can’t perform that action at this time.
0 commit comments