From ac45008338dab8bf0c3efa91605acffc8565729c Mon Sep 17 00:00:00 2001 From: Gabin Aureche Date: Tue, 17 May 2022 03:12:16 +0200 Subject: [PATCH] docs: Add GitHub documentation references to permissions (#754) --- README.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index bb118c5..4491ed6 100644 --- a/README.md +++ b/README.md @@ -574,16 +574,14 @@ fatal: unable to access 'https://github.com/username/repository.git/': The reque Error: Action failed with "The process '/usr/bin/git' failed with exit code 128" ``` -Please add the write permission to the `permissions.contents` in a workflow/job. +Please add the write permission to the [`permissions.contents` in a workflow/job](https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions). ```yaml permissions: contents: write ``` -Or, navigate to your repository's settings / actions / general and in the "Workflow permissions" section, select "Read and write permissions": - -Enabling Read and write permissions to the GITHUB_TOKEN on GitHub Actions +Alternatively, you can [configure the default `GITHUB_TOKEN` permissions](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#configuring-the-default-github_token-permissions) by selecting read and write permissions. ### ⭐️ Use the latest and specific release