Skip to content

Commit da9f7a8

Browse files
committed
add job level permissions
1 parent ed34a6d commit da9f7a8

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/snyk.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
name: Snyk Security
2+
name: Snyk Security
33

44
on:
55
workflow_dispatch:
@@ -15,6 +15,10 @@ jobs:
1515
name: snyk test
1616
runs-on: ubuntu-latest
1717
if: github.event_name == 'workflow_dispatch' || github.event_name == 'schedule'
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
security-events: write
1822
steps:
1923
- name: Checkout
2024
uses: actions/checkout@v4
@@ -90,6 +94,8 @@ jobs:
9094
name: snyk monitor
9195
runs-on: ubuntu-latest
9296
if: github.event_name == 'push'
97+
permissions:
98+
contents: read
9399
steps:
94100
- name: Checkout
95101
uses: actions/checkout@v4

0 commit comments

Comments
 (0)