Skip to content

fix(ci): replace classic PAT with 2-credential pattern in update-versions#5750

Merged
davidkonigsberg merged 1 commit into
mainfrom
devin/1781106287-fix-update-versions-tokens
Jun 11, 2026
Merged

fix(ci): replace classic PAT with 2-credential pattern in update-versions#5750
davidkonigsberg merged 1 commit into
mainfrom
devin/1781106287-fix-update-versions-tokens

Conversation

@davidkonigsberg

Copy link
Copy Markdown
Contributor

Summary

The update-versions.yml workflow fails at the "Create or update the pull request" step with Requires authentication. Same root cause as fern-api/fern#16433 — the org now blocks classic PATs, and the approval step used FERN_GITHUB_TOKEN.

Changes follow the 2-credential pattern from fern's update-seed.yml and fix-lint.yml:

  • Added permissions block (contents: write, pull-requests: write) to scope GITHUB_TOKEN
  • Explicit token: ${{ secrets.GITHUB_TOKEN }} on create-pull-request (PR author = github-actions[bot])
  • FERN_SUPPORT_GH_ACTIONS_PAT for automerge + approve (different identity from PR author, avoids self-approval)
  • Automerge and approve now fire on both created and updated PR operations
  • PR number passed via env var instead of template expansion (injection fix)

Link to Devin session: https://app.devin.ai/sessions/93f91ff5c5b64a2c8168fc49f3f42ad2
Requested by: @davidkonigsberg

…ions

Co-Authored-By: David Konigsberg <davidakonigsberg@gmail.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment, CI, and merge conflict monitoring

@github-actions

Copy link
Copy Markdown
Contributor

@davidkonigsberg davidkonigsberg merged commit d2d0ec0 into main Jun 11, 2026
4 checks passed
@davidkonigsberg davidkonigsberg deleted the devin/1781106287-fix-update-versions-tokens branch June 11, 2026 10:58
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.

2 participants