Skip to content

Commit ea8627b

Browse files
committed
adding debug lines
1 parent 78719e2 commit ea8627b

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/update-flake-dependencies.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,20 @@ jobs:
1515
- uses: DeterminateSystems/magic-nix-cache-action@v13
1616
with:
1717
use-flakehub: false
18+
# --- START DEBUG ---
19+
- name: Debug bot token access
20+
env:
21+
GH_TOKEN: ${{ secrets.OP_BOT_TOKEN }}
22+
run: |
23+
echo "=== whoami ==="
24+
gh api /user --jq '.login'
25+
echo "=== org membership (1Password) ==="
26+
gh api /user/memberships/orgs/1Password --jq '{state, role}' || echo "NOT A MEMBER OR 404"
27+
echo "=== can see repo? ==="
28+
gh api /repos/1Password/shell-plugins --jq '{full_name, permissions}' || echo "REPO 404"
29+
echo "=== SSO check (look for X-GitHub-SSO header) ==="
30+
gh api -i /repos/1Password/shell-plugins 2>&1 | grep -i 'x-github-sso\|HTTP/' || true
31+
# --- END DEBUG ---
1832
- name: Update flake.lock and create signed commit with flake.lock changes
1933
env:
2034
GITHUB_TOKEN: ${{ secrets.OP_BOT_TOKEN }}
@@ -27,7 +41,7 @@ jobs:
2741
# if branch exists on remote already
2842
BRANCH_EXISTS=false
2943
if git checkout "$COMMIT_BRANCH" > /dev/null 2>&1; then
30-
# pull changeshttps://github.com/1Password/shell-plugins/pull/595
44+
# pull changes
3145
git pull
3246
BRANCH_EXISTS=true
3347
else

0 commit comments

Comments
 (0)