Skip to content

revert: restore github.token for model sync branch push#10

Open
R-Taneja wants to merge 1 commit into
devfrom
revert/model-sync-branch-token
Open

revert: restore github.token for model sync branch push#10
R-Taneja wants to merge 1 commit into
devfrom
revert/model-sync-branch-token

Conversation

@R-Taneja
Copy link
Copy Markdown

Summary

Reverts #9.

UPSTREAM_GITHUB_TOKEN is a classic PAT. The vercel org blocks classic PATs against org-owned repos, so run 26116051576 failed even earlier than the original — at peter-evans's GET /repos/vercel/models.dev fork-detection call:

`vercel` forbids access via a personal access token (classic). Please use a GitHub App, OAuth App, or a personal access token with fine-grained permissions.

Restoring branch-token: \${{ github.token }} puts us back at the prior failure (Resource not accessible by integration on ref-create). The real fix needs repo/org admin action, one of:

  • Flip vercel/models.dev → Settings → Actions → General → Workflow permissions to Read and write permissions so the workflow's declared contents: write actually applies to GITHUB_TOKEN.
  • Provision a fine-grained PAT or GitHub App installation token with Contents: write on vercel/models.dev, store as a new secret, and use that for branch-token.

Test plan

  • No test — this restores the prior (still-broken) state pending admin action.

Reverts #9. UPSTREAM_GITHUB_TOKEN is a classic PAT and the vercel org
blocks classic PATs against org-owned repos, so peter-evans now fails
even earlier (GET /repos/vercel/models.dev during fork detection) than
the original Resource-not-accessible failure.

Restoring github.token returns to the prior failure mode while the real
fix (enabling contents:write on the fork's workflow permissions, or
provisioning a fine-grained PAT / GitHub App token) is sorted with a
repo admin.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant