Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
tdejoigny-ledger committed Nov 13, 2024
1 parent 3fa70ed commit 02acf88
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/nbgl_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,22 @@ jobs:
test-access:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.CI_BOT_USERNAME }}
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
steps:


- name: Display token scopes
run: |
RESPONSE=$(curl -s -I -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/rate_limit)
SCOPES=$(echo "$RESPONSE" | grep "X-OAuth-Scopes" | sed 's/X-OAuth-Scopes: //')
echo "Token scopes: $SCOPES"
if [[ "$SCOPES" == *"repo"* ]] || [[ "$SCOPES" == *"public_repo"* ]]; then
echo "Token has the necessary permissions."
else
echo "Token does not have the necessary permissions."
exit 1
fi
- name: Test access to app-nbgl repository
run: |
if gh issue list --repo LedgerHQ/app-nbgl-tests; then
Expand All @@ -41,7 +55,7 @@ jobs:
run_NBGL_tests:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ secrets.COMMON_READ_ORG }}
GITHUB_TOKEN: ${{ secrets.CI_BOT_TOKEN }}
steps:
- name: Test access to app-ethereum repository
run: |
Expand Down

0 comments on commit 02acf88

Please sign in to comment.