Skip to content

Commit 7daaf19

Browse files
authored
Move specific permissions into job
1 parent ce15ca3 commit 7daaf19

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/eslint.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ on:
2020

2121
permissions:
2222
contents: read
23-
security-events: write
24-
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
2523

2624
jobs:
2725
eslint:
2826
name: Run eslint scanning
2927
runs-on: ubuntu-latest
28+
permissions:
29+
security-events: write
30+
actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status
3031
steps:
3132
- name: Checkout code
3233
uses: actions/checkout@4.2.2

0 commit comments

Comments
 (0)