Skip to content

Commit

Permalink
docs: add "permissions.content: write" to GH workflow examples (faceb…
Browse files Browse the repository at this point in the history
…ook#8877)

Co-authored-by: Sébastien Lorber <[email protected]>
  • Loading branch information
e-minguez and slorber authored Apr 13, 2023
1 parent 2b99426 commit 35183d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions website/docs/deployment.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ on:
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on

permissions:
contents: write

jobs:
deploy:
name: Deploy to GitHub Pages
Expand Down Expand Up @@ -488,6 +491,9 @@ on:
push:
branches: [main]
permissions:
contents: write
jobs:
test-deploy:
if: github.event_name != 'push'
Expand Down

0 comments on commit 35183d7

Please sign in to comment.