From 35183d7d87df4935101a6bf62c98cb9cb7d7711b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eduardo=20M=C3=ADnguez?= Date: Thu, 13 Apr 2023 10:04:07 +0200 Subject: [PATCH] docs: add "permissions.content: write" to GH workflow examples (#8877) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Sébastien Lorber --- website/docs/deployment.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/docs/deployment.mdx b/website/docs/deployment.mdx index b6fd3340cf..512c30b6cb 100644 --- a/website/docs/deployment.mdx +++ b/website/docs/deployment.mdx @@ -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 @@ -488,6 +491,9 @@ on: push: branches: [main] +permissions: + contents: write + jobs: test-deploy: if: github.event_name != 'push'