Skip to content

fix(pre-commit-autoupdate): author as bot and sign commits - #45

Merged
jmeridth merged 1 commit into
mainfrom
fix/autoupdate-bot-author
Oct 28, 2026
Merged

jmeridth merged 1 commit into
mainfrom
fix/autoupdate-bot-author

Conversation

@jmeridth

Copy link
Copy Markdown
Member

What/Why

The weekly autoupdate commit is authored by whoever last edited the cron, because create-pull-request defaults author to github.actor. It is also unsigned, which the branch ruleset blocks. This sets the author to github-actions[bot] and signs commits through the API.

Proof it works

Can only be tested with workflow_dispatch once this is on main.

Risk

Low. Only affects the weekly pre-commit autoupdate PR.

AI role

Drafted by Claude (Sonnet 5.5), reviewed by the human author.

Review focus

With sign-commits, GitHub may attribute the commit to the octo-sts app rather than github-actions[bot].

## What/Why

The autoupdate PR commit was authored by the last person to edit the cron, because create-pull-request defaults `author` to `github.actor`. It was also unsigned, which the branch ruleset blocks. Set the author to github-actions[bot] and sign commits through the API.

## Proof it works

Not testable before merge. The workflow can only be exercised with `workflow_dispatch` from main.

## Risk

Low. Only affects the weekly pre-commit autoupdate PR.

## AI role

Change drafted by Claude (Sonnet 5.5) and reviewed by the human author.

## Review focus

With `sign-commits`, GitHub may attribute the commit to the octo-sts app rather than github-actions[bot].

Signed-off-by: jmeridth <jmeridth@gmail.com>
@jmeridth jmeridth self-assigned this Oct 28, 2026
@jmeridth
jmeridth marked this pull request as ready for review October 28, 2026 11:20
@jmeridth
jmeridth requested a review from a team as a code owner October 28, 2026 11:20
@jmeridth
jmeridth merged commit 1051d24 into main Oct 28, 2026
5 checks passed
@jmeridth
jmeridth deleted the fix/autoupdate-bot-author branch October 28, 2026 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant