Skip to content

Commit

Permalink
docs: add "permissions.content: write" to GH workflow examples (#8877)
Browse files Browse the repository at this point in the history
Co-authored-by: Sébastien Lorber <slorber@users.noreply.github.com>
  • Loading branch information
e-minguez and slorber committed 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
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.