Skip to content

Commit 2ce01cd

Browse files
committed
chore: update permissions in deployment workflow for documentation and clarify label usage
1 parent 4aa8500 commit 2ce01cd

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/deploy-docs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,11 @@ on:
1212
jobs:
1313
deploy-docs:
1414
runs-on: ubuntu-latest
15-
# Only run on master/main pushes or PRs with "docs" label
15+
permissions:
16+
contents: read
17+
pull-requests: write
18+
issues: write
19+
# Only run on master/main pushes or PRs with "documentation" label
1620
if: |
1721
github.event_name == 'push' && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') ||
1822
github.event_name == 'pull_request' && contains(github.event.pull_request.labels.*.name, 'documentation') ||

0 commit comments

Comments
 (0)