From 78675cccb6a0907db90fbe0c61d723adddb6a07d Mon Sep 17 00:00:00 2001 From: Dinh Bao Dang <250694+chillinpanda@users.noreply.github.com> Date: Fri, 6 Oct 2023 10:00:33 +0200 Subject: [PATCH] docs(deployment): add permissions config to github action file in v2.4.3... this is already documented in the latest version by commit 35183d7d87df4935101a6bf62c98cb9cb7d7711b See also #8877 This is also working for v2.4.3 and needed for using GitHub Pages and Actions with the default setting for the action's automatic GITHUB_TOKEN --- website/versioned_docs/version-2.4.3/deployment.mdx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/website/versioned_docs/version-2.4.3/deployment.mdx b/website/versioned_docs/version-2.4.3/deployment.mdx index f1007b91e753..0c49003366ba 100644 --- a/website/versioned_docs/version-2.4.3/deployment.mdx +++ b/website/versioned_docs/version-2.4.3/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'