From 9412b4f92a14d01e3590a60a88378c26bb0d2719 Mon Sep 17 00:00:00 2001 From: Sonja Heinze Date: Tue, 5 Dec 2023 12:50:21 +0100 Subject: [PATCH] Try to use the action's token with full permissions --- .github/workflows/token_issue.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/token_issue.yml diff --git a/.github/workflows/token_issue.yml b/.github/workflows/token_issue.yml new file mode 100644 index 0000000..99e2bd8 --- /dev/null +++ b/.github/workflows/token_issue.yml @@ -0,0 +1,15 @@ +name: Token issue debugging + +on: + pull_request: + branches: [ main ] + +jobs: + debugging: + runs-on: ubuntu-latest + permissions: write-all + steps: + - name: Write a comment on a PR + run: | + curl -LsX POST -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" -d '{"body":"Hello :)"}' "${{ github.event.pull_request.comments_url }}" + echo $?