-
Notifications
You must be signed in to change notification settings - Fork 120
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GITHUB_TOKEN write access test workflow
- Loading branch information
1 parent
30c9d31
commit 83182b3
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |