Skip to content

ci: mint a bee-runner App token instead of the dead GHA_PAT_ADVANCED - #843

Merged
darkobas2 merged 1 commit into
masterfrom
ci/app-token-openapi
Sep 10, 2026
Merged

ci: mint a bee-runner App token instead of the dead GHA_PAT_ADVANCED#843
darkobas2 merged 1 commit into
masterfrom
ci/app-token-openapi

Conversation

@darkobas2

Copy link
Copy Markdown
Contributor

The update-openapi workflow has been failing on every scheduled run since August 27. The problem is not a missing secret. GHA_PAT_ADVANCED is an organization-level secret that has been shared with this repo since #826. But the token in it is dead. GitHub returns 401 Bad credentials. The same secret fails in ethersphere/gateway-proxy too, which means the token itself is broken, not this repo's setup.

The problem stayed hidden for seven weeks. After #826 switched the workflow over, every scheduled run skipped the "Create or update PR" step because the docs were already up to date. The new token was never used. Bee v2.8.2 came out on August 26. The run on August 27 was the first to reach that step, and it failed. No openapi auto-update PR has been opened since #826 merged.

This PR uses a short-lived bee-runner GitHub App token instead. It only works on this repo and has write access to contents and pull-requests. This matches the pattern used in ethersphere/swarm-cli. It also updates peter-evans/create-pull-request from v6 to v8.1.1, since v6 runs on the old Node 20.

The token also asks for issues: write. That looks odd for a docs bot, so to explain: PR labels are applied through the issues API, and tag-on-openapi-merge.yaml only runs when the openapi-auto-update label is present. Without that permission the label would not be applied and the tagging workflow would never fire.

tag-on-openapi-merge.yaml is fixed in the same PR. It still used BOT_PAT, which no longer exists at repo or org level. That workflow only runs when an openapi PR merges, so the break is invisible now. But it would fail as soon as this one starts working again.

Auto-PRs will now be made by bee-runner[bot] instead of bee-worker.

GHA_PAT_ADVANCED is left alone here. gateway-proxy needs to fix or move it separately.

@netlify

netlify Bot commented Sep 10, 2026

Copy link
Copy Markdown

Deploy Preview for test-twitter-preview-testing-3 ready!

Name Link
🔨 Latest commit 5e4f943
🔍 Latest deploy log https://app.netlify.com/projects/test-twitter-preview-testing-3/deploys/6aa30308670a6a0008cb2c44
😎 Deploy Preview https://deploy-preview-843--test-twitter-preview-testing-3.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@darkobas2
darkobas2 merged commit 84166c0 into master Sep 10, 2026
9 checks passed
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