From 291bc060471cf14118531bae58e18e6714673734 Mon Sep 17 00:00:00 2001 From: Daniel Himmelstein Date: Tue, 21 Feb 2023 09:28:03 -0500 Subject: [PATCH] GH actions: permissions.contents.write refs https://github.com/manubot/rootstock/issues/485#issuecomment-1430048424 Some users might have their repository workflow permissions set to read only. This change should ensure the workflow job can write commits back to the output and gh-pages branches on GitHub. --- .github/workflows/manubot.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/manubot.yaml b/.github/workflows/manubot.yaml index 80a985d..206a295 100644 --- a/.github/workflows/manubot.yaml +++ b/.github/workflows/manubot.yaml @@ -38,6 +38,8 @@ jobs: manubot: name: Manubot runs-on: ubuntu-latest + permissions: + contents: write env: GITHUB_PULL_REQUEST_SHA: ${{ github.event.pull_request.head.sha }} # Set SPELLCHECK to true/false for whether to check spelling in this action.