Skip to content

Commit

Permalink
Try to use the action's token with full permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pitag-ha committed Dec 5, 2023
1 parent 4f44490 commit 9412b4f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/token_issue.yml
Original file line number Diff line number Diff line change
@@ -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 $?

0 comments on commit 9412b4f

Please sign in to comment.