Skip to content

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

Open
Piccirello wants to merge 1 commit into
mainfrom
fix/sign-workflow-commits
Open

fix(ci): sign the commits this workflow creates#92
Piccirello wants to merge 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

Replaces chart-releaser-action's built-in index push with install_only plus explicit cr upload / cr index, and commits index.yaml to gh-pages through the API.

Testing

Not verified end to end, and this is the riskiest change in the set. chart-releaser-action hardcodes cr index --push, so there is no input that turns the git write off; the only way to sign it is to drive cr directly. cr upload only talks to the releases API and needs no git write, so it is unchanged in substance. Worth a careful review from someone who knows this chart flow. Note the ruleset's ref condition is ~ALL, so it covers gh-pages too.

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.
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