Skip to content

Commit 72ad125

Browse files
chore: correct github credentials setup in Create New Library Github Action (#32343)
1 parent 3085478 commit 72ad125

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

.github/workflows/new-library.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,22 @@ jobs:
1616
steps:
1717
- name: Checkout repo
1818
uses: actions/checkout@v6
19+
with:
20+
# IMPORTANT: This ensures the checkout uses the correct identity for git operations
21+
token: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
22+
# - name: Debug Token Permissions
23+
# # Uncomment to debug access token issues
24+
# env:
25+
# GH_TOKEN: ${{ secrets.YOSHI_CODE_BOT_TOKEN }}
26+
# run: |
27+
# echo "=== 1. Who does this token belong to? ==="
28+
# gh api user --jq .login
29+
30+
# echo "=== 2. What scopes does this token have? ==="
31+
# gh api user -i 2>&1 | grep -i "x-oauth-scopes" || echo "Could not determine scopes"
32+
33+
# echo "=== 3. Can I see the target fork? ==="
34+
# gh repo view yoshi-code-bot/google-cloud-ruby --json viewerPermission
1935
- name: Install Ruby 3.3
2036
uses: ruby/setup-ruby@v1
2137
with:

0 commit comments

Comments
 (0)