Skip to content

Commit 8525f22

Browse files
committed
Narrows privileges for GitHub workflow in publish.yml
Why: The principle of Least Privilege guards against a vulnerability in the actions.
1 parent 0c4858c commit 8525f22

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
pull_request:
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
lint:
1316
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)