Skip to content

Commit

Permalink
list token permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Aug 19, 2024
1 parent cf7d086 commit 84e5ee8
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/genai-commander.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,16 @@ jobs:
contents: write
pull-requests: write
steps:
- name: List GitHub Token Permissions
uses: actions/github-script@v4
with:
script: |
const permissions = await github.request('GET /repos/{owner}/{repo}/collaborators/{username}/permission', {
owner: context.repo.owner,
repo: context.repo.repo,
username: context.actor
});
console.log('Permissions:', permissions.data);
- name: resolve pr sha
id: sha
uses: actions/github-script@v4
Expand Down

0 comments on commit 84e5ee8

Please sign in to comment.