From d912fe8085a907f709180369a79effdc820afa40 Mon Sep 17 00:00:00 2001 From: Luca Steeb Date: Sat, 18 Jan 2025 13:02:14 +0400 Subject: [PATCH] docs(readme): add action token permissions This automatically sets the correct permissions in the workflow definition so that the user doesn't have to change the default workflow permissions in the repo settings. --- README.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/README.md b/README.md index 9d8a6b0..a54bcde 100644 --- a/README.md +++ b/README.md @@ -205,6 +205,8 @@ on: [ "push" ] jobs: build: runs-on: "ubuntu-latest" + permissions: + issues: write steps: - uses: "actions/checkout@v4" - name: "TODO to Issue" @@ -228,6 +230,10 @@ on: [ "push" ] jobs: build: runs-on: "ubuntu-latest" + permissions: + contents: write + issues: write + pull-requests: write steps: - uses: "actions/checkout@v4" - name: "TODO to Issue"