Skip to content

Commit

Permalink
add admin pat
Browse files Browse the repository at this point in the history
  • Loading branch information
glenn-sorrentino committed Aug 31, 2024
1 parent a309dee commit a7a6857
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/bypass-css-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- name: Set up GitHub CLI Authentication
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.ADMIN_PAT }}
run: |
AUTHOR=$(gh pr view ${{ github.event.pull_request.number }} --json author --jq '.author.login')
ADMIN_CHECK=$(gh api user/memberships/orgs/scidsg --jq '.role')
Expand All @@ -30,4 +30,4 @@ jobs:
else
echo "No CSS files detected or user is not an admin, continuing with normal review process"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ADMIN_PAT }}
4 changes: 2 additions & 2 deletions .github/workflows/bypass-version-review.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:

- name: Set up GitHub CLI Authentication
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.ADMIN_PAT }}
run: |
AUTHOR=$(gh pr view ${{ github.event.pull_request.number }} --json author --jq '.author.login')
ADMIN_CHECK=$(gh api user/memberships/orgs/scidsg --jq '.role')
Expand All @@ -30,4 +30,4 @@ jobs:
else
echo "No matching files detected or user is not an admin, continuing with normal review process"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.ADMIN_PAT }}

0 comments on commit a7a6857

Please sign in to comment.