Repository navigation
feat: add approval-gated Sandbox deploy and cleanup workflows - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add two manual, main-only Sandbox workflows:
build-approve-deploy.yml: repository quality gate → actual CommerceKit check of three supported fixtures → actual CCv2 Build Action → native environment approval → recreate the validated synthetic build in a fresh isolated run → actual Deploy Action.cleanup.yml: seed 105 mixed/protected builds, execute the actual Cleanup Action twice with dry-run hardcoded true, validate exact counts/reasons/shared events and zero target mutations, then remove the run.The owner selected synthetic recreation across the approval boundary. Only a validated public build identifier crosses jobs; credentials and private state never become outputs or artifacts. Required reviewer
anilkreddy, own-run approval allowed, main-only branch policy and administrator bypass disabled are configured and independently verified onsandbox-deploy-approval. Both before-build and after-gate preflights fail closed on policy drift.Validation:
pnpm qualitypassed: 62 offline tests, zero skips; format/lint, workflow security policy, public scan and audit passed. actionlint passed.createDeployment:d1contract and added regressions.docs/VALIDATION.mdanddocs/WORKFLOWS.mdfor provenance, actual commands, setup and dispatch instructions.Hosted manual flows, job-token approval metadata access and native human approval remain NOT RUN. Public hosted OpenAPI advertises the fixture endpoint, but no hosted fixture operation was executed. CI on this PR is offline only. The production cleanup eligibility gate and real SAP/release approvals remain unchanged.
No live dispatch, hosted Sandbox deployment, SAP operation, provider send, package publication or release tag. Existing 16 scenarios and provider suites remain unchanged. Keep this initial implementation in draft for review before live testing.
Final hosted CI evidence: quality run 43632554003 passed on final head
1f2207afe624b4b22e727aa417f22696a9b3f4f2. The initial implementation head also passed run 43632346842; that exact evidence is committed indocs/VALIDATION.md. The PR remains draft, and neither manual hosted workflow has been dispatched.