Skip to content

attestgate: Builders, each called from a job on main - #39

Merged
aledbf merged 1 commit into
mainfrom
builders
Oct 13, 2026
Merged

aledbf merged 1 commit into
mainfrom
builders

Conversation

@aledbf

@aledbf aledbf commented Oct 13, 2026 •

Copy link
Copy Markdown
Contributor

spin-ami publishes from three places (the AMI release, bare metal's medium, the packs CI saves on a push to main), and the plan makes each a reusable builder. Gate.Builder becomes Builders []string. The caller rule moves from "its workflow is MainOnly" to "its job has if: github.ref == 'refs/heads/main'": CI runs on pushes and PRs, but its job that calls a builder runs only on main. Every other rule is unchanged: workflow_call alone, the own-repository guard, id-token, uploads only inside a builder.

Tests: a second builder called from CI on main passes; the same call off main fails; a reusable workflow that is not a builder publishing fails. task lint, task mutate (0 survived). spin-machine moves to Builders when it takes this.

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

spin-ami publishes from three places - the AMI release, bare metal's medium, and
the packs CI saves on a push to main - each to become a builder of its own. Gate
Builder becomes Builders, and the caller's rule moves from its workflow being
MainOnly to its job running only on refs/heads/main: CI is pushed and pulled,
but its job that calls a builder is main's.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@aledbf
aledbf merged commit 70a418a into main Oct 13, 2026
1 check passed
@aledbf
aledbf deleted the builders branch October 13, 2026 17:47
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