From 2307d9a09981f59151c99e05ea35e1855ce192df Mon Sep 17 00:00:00 2001 From: Leith Caldwell Date: Wed, 12 Apr 2023 16:32:47 +1200 Subject: [PATCH] Document GITHUB_TOKEN permissions Required to support MULTI_STATUS (which is true by default) --- README.md | 8 ++++++++ TEMPLATES/linter.yml | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/README.md b/README.md index 910a1803..ad231f37 100644 --- a/README.md +++ b/README.md @@ -156,6 +156,14 @@ jobs: # Set the agent to run on runs-on: ubuntu-latest + ############################################ + # Grant status permission for MULTI_STATUS # + ############################################ + permissions: + contents: read + packages: read + statuses: write + ################## # Load all steps # ################## diff --git a/TEMPLATES/linter.yml b/TEMPLATES/linter.yml index 402f4a6e..a917dc88 100644 --- a/TEMPLATES/linter.yml +++ b/TEMPLATES/linter.yml @@ -31,6 +31,14 @@ jobs: # Set the agent to run on runs-on: ubuntu-latest + ############################################ + # Grant status permission for MULTI_STATUS # + ############################################ + permissions: + contents: read + packages: read + statuses: write + ################## # Load all steps # ##################