Skip to content

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

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

Piccirello merged 1 commit into
masterfrom
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

Upgrades create-pull-request from v3.14.0 to v8.1.1 and sets sign-commits: true.

Testing

Not run end to end. Two pre-existing problems surfaced while doing this, neither introduced here. The workflow referenced secrets.POSTHOG_BOT_PAT, which does not exist on this repo or in the org secrets it can read, so both the checkout and the PR step were running with an empty token. Signing only works with a bot-generated token and never with a PAT, so the fix drops the phantom secret and uses GITHUB_TOKEN. Consequence to weigh: a PR opened by GITHUB_TOKEN does not trigger on: pull_request runs, so CI.yml will not run on the bump PR (release.yml still fires, since a human performs the merge). Separately, the job still targets ubuntu-20.04, which GitHub has retired, so this workflow cannot currently start at all; that is left alone as out of scope.

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 3d19a8a into master Aug 5, 2026
9 of 23 checks passed
@Piccirello
Piccirello deleted the fix/sign-workflow-commits branch August 5, 2026 01:54
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