Skip to content

Create catalog proposals as signed commits - #34

Merged
showxu merged 1 commit into
masterfrom
signed-catalog-proposals
Oct 5, 2026
Merged

showxu merged 1 commit into
masterfrom
signed-catalog-proposals

Conversation

@showxu

@showxu showxu commented Oct 5, 2026

Copy link
Copy Markdown
Contributor

The master ruleset requires verified signatures, so a catalog proposal built locally with git commit-tree (#33) could never merge. The tap hit the same block in computer-mcp/homebrew-tap#6.

The publication helper now computes the expected tree locally as before, then has GitHub create the catalog blob, tree and commit through the REST API with the job token, which GitHub signs. It requires GitHub's blob and tree to match the local objects and the commit to be verified, points automation/plugin-catalog at it, and fetches it to confirm parent and tree before the merge step. The Pages job passes its token to that step; docs describe the signed proposal.

Tests serve the same API calls from the bare fixture remote and cover a rejected unsigned commit and a missing token.

The master ruleset requires verified signatures, so a proposal committed
locally with git commit-tree could never merge. The publication helper
now has GitHub create the catalog blob, tree and commit through the REST
API with the job token, which GitHub signs. It requires the objects to
match the locally computed tree and parent and the commit to be
verified before pointing automation/plugin-catalog at it.
@showxu
showxu merged commit 7ec2f32 into master Oct 5, 2026
2 checks passed
@showxu
showxu deleted the signed-catalog-proposals branch October 5, 2026 07:53
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