Skip to content

Commit 86d05a1

Browse files
chore: update publish-docs permissions to be more targeted. (#812)
This is recommended by OSSF.
1 parent 9f22cf1 commit 86d05a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/publish-docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ on:
55
types: [published]
66
workflow_dispatch:
77

8-
permissions:
9-
contents: write
8+
permissions: read-all
109

1110
jobs:
1211
deploy:
12+
permissions:
13+
contents: write
1314
runs-on: ubuntu-latest
1415
steps:
1516
- name: Check out code

0 commit comments

Comments
 (0)