Skip to content

ci: release with the service account token - #25

Merged
jirispilka merged 1 commit into
mainfrom
fix-release-push
Jul 31, 2026
Merged

ci: release with the service account token#25
jirispilka merged 1 commit into
mainfrom
fix-release-push

Conversation

@jirispilka

Copy link
Copy Markdown
Collaborator

The last release run failed on git push origin main:

remote: - Required workflow 'Apify pull request toolkit, Apify pull request toolkit' is not satisfied
 ! [remote rejected] main -> main (push declined due to repository rule violations)

The org ruleset Run Apify Pull Request Toolkit on every PR requires that workflow on the default branch. Its bypass actors are OrganizationAdmin, two apps, and the Service Account team — github-actions is none of them, so the release job's push can never satisfy the rule.

So the release job now authenticates as the service account (APIFY_SERVICE_ACCOUNT_GITHUB_TOKEN, an org secret already available to this repo), which is how the rest of the apify repos push release commits — see apify/apify-mcp-server's _update_release_metadata.yaml.

A bot-opened release PR was the alternative, but PRs created with GITHUB_TOKEN don't trigger pull_request workflows, so the required check would never run and the PR could not merge.

Also adds [skip ci] to the release commit so a version-only bump doesn't re-run Tests on main.

Verified only up to the push: this can't be proven green until the next Release dispatch, which publishes a real version.

🤖 Generated with Claude Code

The org ruleset "Run Apify Pull Request Toolkit on every PR" requires that
workflow on main, and github-actions is not a bypass actor, so the release
job's push to main was rejected. The Service Account team does bypass the
ruleset, so use its token for the checkout push and for gh, as other apify
repos do.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@jirispilka
jirispilka merged commit f0700f2 into main Jul 31, 2026
2 checks passed
@jirispilka
jirispilka deleted the fix-release-push branch July 31, 2026 11:17
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