Skip to content

fix(ci): sign the commits this workflow creates - #4

Merged
Piccirello merged 1 commit into
mainfrom
fix/sign-workflow-commits
Aug 5, 2026
Merged

fix(ci): sign the commits this workflow creates#4
Piccirello merged 1 commit into
mainfrom
fix/sign-workflow-commits

Conversation

@Piccirello

Copy link
Copy Markdown
Member

Summary

Makes the workflow that commits in this repo produce signed commits.

Commits created with plain git are unsigned. PostHog is rolling the org-wide "Require signed commits" ruleset out to every repo, and this workflow would be rejected with GH013 once it applies here. Routing the commit through the GitHub API instead means GitHub signs it with its own key, so it lands verified.

Found while inventorying which workflows across the org still create unsigned commits. planetscale/ghcommit-action is the pattern already in use in posthog-js, posthog-roblox, brand, charts and the SDK release fleet.

Changes

The release version bump is committed through the API. The job's committed output now comes from an explicit check step rather than the commit step.

Testing

Not run end to end (release runs behind an approval gate). Downstream jobs read needs.version-bump.outputs.committed, which is preserved.

Commits created with plain git are unsigned and are rejected by the
org-wide signed-commits ruleset. Route them through the GitHub API so
GitHub signs them with its own key.
@Piccirello
Piccirello merged commit 6d1768d into main Aug 5, 2026
11 checks passed
@Piccirello
Piccirello deleted the fix/sign-workflow-commits branch August 5, 2026 01:52
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