From 3c9a6feff2b84863d89b68c11ffaa263272bbb21 Mon Sep 17 00:00:00 2001 From: the-data-viking Date: Wed, 14 Oct 2026 17:41:17 -0500 Subject: [PATCH] ci: push the release bump as the release-bot App, not GITHUB_TOKEN actions/checkout persists GITHUB_TOKEN as an http extraheader, and git sends that header instead of the x-access-token credentials in the push URL. The bump commit therefore went out as github-actions[bot], which is not a ruleset bypass actor, and main rejected it with GH013 (v1.9.0 after #597). The ruleset itself is right: Integration 3967952 is a bypass actor. Reset the header for the bump push only; the tag push keeps GITHUB_TOKEN so it still does not trigger publish.yml. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/auto-tag.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/auto-tag.yml b/.github/workflows/auto-tag.yml index 168003bc..80c52de1 100644 --- a/.github/workflows/auto-tag.yml +++ b/.github/workflows/auto-tag.yml @@ -213,7 +213,13 @@ jobs: VERSION="${NEW_TAG#v}" git commit -m "chore(release): sync __version__.py + rendered artifacts to ${VERSION} (PR #${PR_NUMBER}) (sy-hs4)" # Push as the release-bot App (Integration bypass actor on main). - git push "https://x-access-token:${APP_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" HEAD:main + # actions/checkout persists GITHUB_TOKEN as an Authorization + # extraheader, which git sends instead of the URL credentials, so + # without the reset this push went out as github-actions[bot] and + # hit GH013 (v1.9.0, PR #597). An empty value clears the header + # for this push only; the tag push below still uses GITHUB_TOKEN. + git -c http.https://github.com/.extraheader= \ + push "https://x-access-token:${APP_TOKEN}@github.com/${GITHUB_REPOSITORY}.git" HEAD:main fi - name: Create and push tag