Skip to content

[CI] Commit website branch changes as the GitHub Actions bot - #3127

Merged
jiayuasu merged 1 commit into
apache:masterfrom
jiayuasu:ci/fix-website-commit-identity
Jul 19, 2026
Merged

[CI] Commit website branch changes as the GitHub Actions bot#3127
jiayuasu merged 1 commit into
apache:masterfrom
jiayuasu:ci/fix-website-commit-identity

Conversation

@jiayuasu

Copy link
Copy Markdown
Member

Did you read the Contributor Guide?

Is this PR related to a ticket?

  • No:
    • this is a CI update. The PR name follows the format [CI] my subject

What changes were proposed in this PR?

Commits pushed to the website branch by the docs workflow are attributed to the wrong identities:

  • The noindex step added in [DOCS] Keep archived doc versions out of search results #3125 commits as GitHub Action <test@abc.com>. GitHub resolves commit authorship by email, and test@abc.com is owned by an unrelated GitHub user, so those commits show up on GitHub as authored by a stranger's account.
  • The pre-existing global config lines contain a stray = (git config --global user.name = "GitHub Action"), which git parses as the value. The effective identity is literally = <=>, which is why every mike deploy commit on the website branch is authored as = and attributed to no account.

This PR sets the standard GitHub Actions bot identity in both places and fixes the config syntax:

github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

That identity maps to the official Actions bot account and cannot be claimed by any user. The two existing misattributed commits on website are left in history; all future workflow commits will carry the bot identity.

How was this patch tested?

  • actionlint, yamllint, and prettier pass on the workflow file (pre-commit).
  • The identity/email pair is the documented github-actions bot identity used to attribute workflow commits to the Actions bot.

Did this PR include necessary documentation updates?

  • No, this PR does not affect any public API so no need to change the documentation.

The docs workflow configured git with a placeholder identity
(test@abc.com). GitHub attributes commits to accounts by email, and that
address is owned by an unrelated GitHub user, so the website-branch
commits created by the noindex step were attributed to a stranger's
account.

The pre-existing global config lines also carried a stray "=", which git
parsed as the value; mike deploy commits were therefore authored as
"= <=>" and attributed to no account at all.

Use the GitHub Actions bot identity (github-actions[bot]
<41898282+github-actions[bot]@users.noreply.github.com>) in both places
and fix the git config syntax.
@jiayuasu
jiayuasu merged commit e02b3fe into apache:master Jul 19, 2026
12 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