From 1d44853e589689f0aaa1c397f991ecf92e9c0591 Mon Sep 17 00:00:00 2001 From: Jamie Tanna Date: Wed, 22 Feb 2023 17:05:41 +0000 Subject: [PATCH] docs: add more details about `GITHUB_TOKEN` (#399) As it can simplify folks' setup for their workflows. --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 43745ec9..976c9117 100644 --- a/README.md +++ b/README.md @@ -39,6 +39,9 @@ on: pull_request: push: +permissions: + contents: write + jobs: goreleaser: runs-on: ubuntu-latest @@ -194,7 +197,7 @@ Following environment variables can be used as `step.env` keys | Name | Description | |------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------| -| `GITHUB_TOKEN` | [GITHUB_TOKEN](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token) as provided by `secrets` | +| `GITHUB_TOKEN` | [GITHUB_TOKEN](https://help.github.com/en/actions/configuring-and-managing-workflows/authenticating-with-the-github_token) as provided by `secrets` and requires `contents:write` | | `GORELEASER_KEY` | Your [GoReleaser Pro](https://goreleaser.com/pro) License Key, in case you are using the `goreleaser-pro` distribution | ## Limitation