Skip to content

Commit 895d441

Browse files
committed
snyk wip
1 parent 23599ed commit 895d441

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

.github/workflows/snyk-security-scan.yml

+9-10
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,17 @@ on:
44
workflow_call:
55

66
jobs:
7-
synk-security-scan:
7+
snyk-python-security-scan:
88
name: Snyk security scan
99
runs-on: ubuntu-latest
1010
# see this PR regarding the permissions needed for this workflow
1111
# https://github.com/snyk/actions/pull/79
12-
# permissions:
13-
# # required for all workflows
14-
# security-events: write
15-
# # only required for workflows in private repositories
16-
# actions: read
17-
# contents: read
18-
env:
19-
# https://github.com/snyk/actions/pull/79
20-
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
12+
permissions:
13+
# required for all workflows
14+
security-events: write
15+
# only required for workflows in private repositories
16+
actions: read
17+
contents: read
2118
steps:
2219
- uses: actions/checkout@v4
2320
- name: Setup Python
@@ -29,3 +26,5 @@ jobs:
2926
- name: Run Snyk
3027
continue-on-error: true
3128
run: snyk monitor --all-projects --severity-threshold=high
29+
env:
30+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

0 commit comments

Comments
 (0)