You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Hyukjin Kwon (Jira)" <ji...@apache.org> on 2026/08/29 08:51:00 UTC

[jira] [Created] (SPARK-59106) Release-tag push to apache uses the built-in token instead of RELEASE_GITHUB_TOKEN (403)

Hyukjin Kwon created SPARK-59106:
------------------------------------

             Summary: Release-tag push to apache uses the built-in token instead of RELEASE_GITHUB_TOKEN (403)
                 Key: SPARK-59106
                 URL: https://issues.apache.org/jira/browse/SPARK-59106
             Project: Spark
          Issue Type: Bug
          Components: Connect
    Affects Versions: connect-rust-4.3.0
            Reporter: Hyukjin Kwon


Cutting an RC failed at the "Create and push the RC tag to the canonical apache repo" step of the release workflow:

    remote: Permission to apache/spark-connect-rust.git denied to github-actions[bot].
    fatal: unable to access '''https://github.com/apache/spark-connect-rust.git/''': The requested URL returned error: 403

RELEASE_GITHUB_TOKEN is set on the fork, so the secret is not the problem. The push went out as github-actions[bot] instead of the PAT identity.

Root cause: the publish-rc and finalize jobs check out apache/spark-connect-rust with actions/checkout@v4 at its default persist-credentials: true, which stores the built-in GITHUB_TOKEN as a git http.https://github.com/.extraheader. That header overrides the RELEASE_GITHUB_TOKEN embedded in the subsequent  URL, so the push authenticates as github-actions[bot] (no write to apache) -> 403. The gh-CLI release steps use the PAT via GH_TOKEN and are unaffected; only the two git-push steps are hijacked.

Fix: set persist-credentials: false on the publish-rc and finalize checkouts so the PAT-in-URL pushes authenticate as the token owner. No new secret required (RELEASE_GITHUB_TOKEN already exists).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org