File tree Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Expand file tree Collapse file tree 1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Snyk Security
2+ on :
3+ push :
4+ branches :
5+ - main
6+
7+ jobs :
8+ snyk-scan :
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Checkout code
12+ uses : actions/checkout@v4
13+ with :
14+ submodules : recursive
15+
16+ - name : Install Snyk CLI
17+ run : npm install -g snyk
18+
19+ - name : Snyk Monitor and Test multiple projects
20+ env :
21+ SNYK_TOKEN : ${{ secrets.SNYK_TOKEN }}
22+ SNYK_ORG : ${{ secrets.SNYK_ORG }}
23+ run : |
24+ git fetch origin 'refs/tags/*:refs/tags/*'
25+ git checkout main
26+ echo "Authenticating with Snyk"
27+ snyk auth ${SNYK_TOKEN}
28+ echo "Scanning project: codeflare-sdk/main"
29+ snyk monitor --all-projects --exclude=requirements.txt --org=${SNYK_ORG} --target-reference="main"
30+ list_of_released_tags=("v0.19.1" "v0.2000.0" "v0.22.0")
31+ for project in "${list_of_released_tags[@]}"; do
32+ echo "Scanning project: codeflare-sdk/$project"
33+ git checkout $project
34+ snyk monitor --all-projects --exclude=requirements.txt --org=${SNYK_ORG} --target-reference="$(git describe --tags)"
35+ done
You can’t perform that action at this time.
0 commit comments