Skip to content

Commit

Permalink
Add GITHUB_TOKEN write access test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jonnybottles committed Nov 2, 2024
1 parent 30c9d31 commit 83182b3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test-github-token-write.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Test GITHUB_TOKEN Write Access

on:
workflow_dispatch: # Allows you to manually trigger this test

jobs:
test-write-access:
runs-on: ubuntu-latest
steps:
- name: Test GITHUB_TOKEN Write Access
env:
ISSUE_NUMBER: 138 # Replace with an existing issue number in your repository
run: |
curl -s -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-X POST \
-d '{"body": "Testing GITHUB_TOKEN write access"}' \
"https://api.github.com/repos/${{ github.repository }}/issues/${ISSUE_NUMBER}/comments"

0 comments on commit 83182b3

Please sign in to comment.