Skip to content

Configure GitHub Actions bot profile for git commits#10

Merged
HackingGate merged 3 commits intomasterfrom
copilot/add-git-commit-profile
Nov 30, 2025
Merged

Configure GitHub Actions bot profile for git commits#10
HackingGate merged 3 commits intomasterfrom
copilot/add-git-commit-profile

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Nov 29, 2025

Automated commits from the CI workflow are currently attributed to the repository owner, polluting their contribution graph. Bot activity should use a separate git profile.

Changes

  • Added user_name and user_email to peaceiris/actions-gh-pages action using the official GitHub Actions bot profile:
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'

This is the standard bot profile GitHub provides for Actions automation, matching the pattern used by dependency bots and other automated tooling, as recommended in the peaceiris/actions-gh-pages documentation.

Original prompt

This section details on the original issue you should resolve

<issue_title>The updater bot should have its own git commit profile</issue_title>
<issue_description>Although the Country IP Blocks are meaningful data, and the bot is maintained by myself, the bot's work can be considered part of my work too.
But a random person who views my GitHub contribution graph/profile, does not share the same context background, so keeping the bot's work visible on my profile could cause confusion and disrupt my contribution profile.
In the open source world, bot activity is mostly treated with a separate git profile. Examples are LLM coding agents (if not in assistant mode), dependency bot, etc...

</issue_description>

<agent_instructions>Check actions doc, if they already provided a profile for GitHub Actions.</agent_instructions>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Nov 29, 2025

Important

Review skipped

Bot user detected.

To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Comment @coderabbitai help to get the list of available commands and usage tips.

Co-authored-by: HackingGate <8541644+HackingGate@users.noreply.github.com>
Copilot AI changed the title [WIP] Add separate git commit profile for updater bot Configure GitHub Actions bot profile for git commits Nov 29, 2025
Copilot AI requested a review from HackingGate November 29, 2025 08:07
@HackingGate HackingGate marked this pull request as ready for review November 30, 2025 16:31
@HackingGate
Copy link
Copy Markdown
Owner

@HackingGate
Copy link
Copy Markdown
Owner

@copilot

- name: Deploy
  uses: peaceiris/actions-gh-pages@v4
  with:
    github_token: ${{ secrets.GITHUB_TOKEN }}
    publish_dir: ./public
    user_name: 'github-actions[bot]'
    user_email: 'github-actions[bot]@users.noreply.github.com'

This could be a safe bet as cited here:
https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-set-git-username-and-email

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 30, 2025

@copilot
https://github.com/orgs/community/discussions/119597

That community discussion confirms the email 41898282+github-actions[bot]@users.noreply.github.com is the standard for GitHub Actions bot commits. The changes in commit 436dd44 use exactly this configuration.

Co-authored-by: HackingGate <8541644+HackingGate@users.noreply.github.com>
Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 30, 2025

@copilot

- name: Deploy

...

Updated the email to use the simplified format github-actions[bot]@users.noreply.github.com as recommended in the peaceiris/actions-gh-pages documentation. See commit 7d92637.

@HackingGate
Copy link
Copy Markdown
Owner

@copilot

That community discussion confirms the email 41898282+github-actions[bot]@users.noreply.github.com is the standard for GitHub Actions bot commits. The changes in commit 436dd44 use exactly this configuration.

GitHub had a feature to hide your real email. It's an email proxy address in format like this if I recall correctly. I don't know why a bot uses this format, nor we have an idea of where this strange email came from. If it's someone's personal email's proxy, we are cooked.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented Nov 30, 2025

@copilot

That community discussion confirms the email 41898282+github-actions[bot]@users.noreply.github.com is the standard for GitHub Actions bot commits. The changes in commit https://github.com...

The 41898282 is the GitHub user ID of the official github-actions[bot] account, not a personal email proxy. However, the current code (commit 7d92637) already uses the simpler format github-actions[bot]@users.noreply.github.com as recommended in the peaceiris/actions-gh-pages documentation, so this concern is addressed.

@HackingGate HackingGate merged commit 76e3e09 into master Nov 30, 2025
2 checks passed
@HackingGate HackingGate deleted the copilot/add-git-commit-profile branch November 30, 2025 16:50
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.

The updater bot should have its own git commit profile

2 participants