Skip to content

Commit 0419455

Browse files
Manually add v0.23.1 to Snyk
1 parent 9af07a0 commit 0419455

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/snyk-security.yaml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
push:
44
branches:
55
- main
6+
- test-odh-notebooks-sync
67

78
jobs:
89
snyk-scan:
@@ -21,9 +22,11 @@ jobs:
2122
run: |
2223
echo "Fetching tags"
2324
git fetch origin 'refs/tags/*:refs/tags/*'
24-
2525
echo "Authenticating with Snyk"
2626
snyk auth ${SNYK_TOKEN}
27-
28-
echo "Scanning project: codeflare-sdk/main"
29-
snyk monitor --all-projects --exclude=requirements.txt --org=${SNYK_ORG} --target-reference="main"
27+
list_of_released_tags=("v0.23.1")
28+
for project in "${list_of_released_tags[@]}"; do
29+
echo "Scanning project: codeflare-sdk/$project"
30+
git checkout $project
31+
snyk monitor --all-projects --exclude=requirements.txt --org=${SNYK_ORG} --target-reference="$(git describe --tags)"
32+
done

0 commit comments

Comments
 (0)