Skip to content

Commit

Permalink
ci: test permisiions to github token
Browse files Browse the repository at this point in the history
  • Loading branch information
pghorpade committed Jul 3, 2024
1 parent ccf3e5b commit 6f5cead
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,12 @@ jobs:
with:
path: .output/public
key: nuxt3-site-${{ github.sha }}
- name: Print GITHUB_TOKEN permissions
run: |
echo "Checking permissions for GITHUB_TOKEN..."
curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/${{ github.repository }}/collaborators/${{ github.actor }}/permission
- name: Sets env vars for PR preview
run: |
echo "ES_ALIAS=${{secrets.ES_ALIAS_TEST}}-deploy-preview-${{github.event.pull_request.number}}" >> $GITHUB_ENV
Expand Down

0 comments on commit 6f5cead

Please sign in to comment.