ci(docs): name disk-sizes commit author per workflow run#21278
Merged
Conversation
Addresses lystopad's review comment on #21100 (landed unaddressed): the generic "github-actions[bot]" author makes it hard to identify which workflow produced the disk-sizes auto-update commit in the target repo. Switch to "github-workflow-update-disk-sizes-run-${RUN_ID}", which: - names the specific workflow (not all github-actions bot commits) - includes the run ID so the commit trail points directly back to the workflow execution that produced it RUN_ID is propagated via env: block, consistent with the rest of the workflow's anti-template-injection pattern. user.email is unchanged (github-actions[bot]@users.noreply.github.com). Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR refines the docs automation workflow so that commits created by update-disk-sizes.yml are authored with a workflow/run-specific user.name, making it easier to trace auto-updates back to the exact GitHub Actions run that produced them.
Changes:
- Update the
Configure gitstep to setgit config user.nametogithub-workflow-update-disk-sizes-run-${RUN_ID}, withRUN_IDsourced via a stepenv:block (github.run_id).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
lystopad
approved these changes
May 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Addresses lystopad's review comment on #21100, which merged before it could be addressed.
The
Configure gitstep inupdate-disk-sizes.ymlwas using the genericgithub-actions[bot]author. Lystopad's feedback:What changed
.github/workflows/update-disk-sizes.yml—Configure gitstep:- name: Configure git if: steps.diff.outputs.changed == 'true' + env: + RUN_ID: ${{ github.run_id }} run: | set -euo pipefail - git config user.name "github-actions[bot]" + git config user.name "github-workflow-update-disk-sizes-run-${RUN_ID}" git config user.email "github-actions[bot]@users.noreply.github.com"github-actions[bot]→github-workflow-update-disk-sizes-run-<run-id>. The auto-update commit now names the specific workflow and the exact run, so anyone investigating the commit in the target repo can jump straight to the run that produced it.RUN_IDpropagated viaenv:block, consistent with the rest of the workflow's anti-template-injection pattern (no template substitution into shell).user.emailunchanged —github-actions[bot]@users.noreply.github.comstill keeps the commit attributed to the bot. Lystopad's suggestion only addresseduser.name.Test plan
yamllint-style by visual inspection — singleenv:insertion)update-disk-sizesworkflow run after merge: confirm the producedchore(docs): auto-update measured disk sizescommit has authorgithub-workflow-update-disk-sizes-run-<id>(where<id>matches the workflow run ID linked from the commit annotation)Related: #21100, #21271