Skip to content

Commit bdd92f6

Browse files
authored
Update Snyk workflow and dependencies
1 parent 5fe80e2 commit bdd92f6

1 file changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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

0 commit comments

Comments
 (0)