Repository navigation
Separate verified Pages upload from protected publication - #53
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.
Narrow deployment mitigation
Split verified output preparation/upload from protected publication into dependent jobs in the same workflow run. This follows a workaround for the matching upstream artifact-discovery report, not a proven backend diagnosis or guaranteed fix: actions/deploy-pages#451 . No site content change or rebuild.
Preparation retains content/actions/PR-read only, verifies exact tested output and matching backup, uploads through the unchanged pinned Pages action, then exports the verified main SHA and upload-returned artifact ID. It has no Pages-write or identity-token permission.
Publication runs only after successful preparation, checks out the exact verified trusted main SHA, and retains the main-only github-pages environment. Before the unchanged pinned deploy-pages action, verify exact artifact ID/name/nonexpiry, same workflow run/head and unique name, then recheck current main last. No privileged job runs PR code, automatic retries, wider account permission, dependency or service. The small final-read-to-deploy race remains non-atomic. REST metadata validation is an identity guard, not a test of the action's internal listing.
Only the recovery record's source identity changes to match reviewed workflow/helper/tests/docs. The backup ZIP and all17application output files are unchanged and match live.
Validation and scope
Exact committed head passes57helper tests,184app tests,production/test builds,full72route/viewport browser regression,12notation fixtures,PWA/offline,practice,papers and final-prep. Dependency/permission/handoff/no-rebuild/final-guard ordering assertions,syntax and whitespace pass. New hosted job handoff/discovery behavior remains unproven.
Approval covers one public PR validation and one normal automatic split-job publication when the owner merges. Adds one short runner job per publication. Existing zero-dollar spending limit remains unchanged, with no paid allowance. Owner reviews and merges himself. No further retries, restore trial, settings or visibility changes are included.