File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change 13
13
test-access :
14
14
runs-on : ubuntu-latest
15
15
env :
16
- GITHUB_TOKEN : ${{ secrets.CI_BOT_USERNAME }}
16
+ GITHUB_TOKEN : ${{ secrets.CI_BOT_TOKEN }}
17
17
steps :
18
+
19
+
20
+ - name : Display token scopes
21
+ run : |
22
+ RESPONSE=$(curl -s -I -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/rate_limit)
23
+ SCOPES=$(echo "$RESPONSE" | grep "X-OAuth-Scopes" | sed 's/X-OAuth-Scopes: //')
24
+ echo "Token scopes: $SCOPES"
25
+ if [[ "$SCOPES" == *"repo"* ]] || [[ "$SCOPES" == *"public_repo"* ]]; then
26
+ echo "Token has the necessary permissions."
27
+ else
28
+ echo "Token does not have the necessary permissions."
29
+ exit 1
30
+ fi
31
+
18
32
- name : Test access to app-nbgl repository
19
33
run : |
20
34
if gh issue list --repo LedgerHQ/app-nbgl-tests; then
41
55
run_NBGL_tests :
42
56
runs-on : ubuntu-latest
43
57
env :
44
- GITHUB_TOKEN : ${{ secrets.COMMON_READ_ORG }}
58
+ GITHUB_TOKEN : ${{ secrets.CI_BOT_TOKEN }}
45
59
steps :
46
60
- name : Test access to app-ethereum repository
47
61
run : |
You can’t perform that action at this time.
0 commit comments