File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 }}
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
You can’t perform that action at this time.
0 commit comments