Repository navigation
docs: publish stable API release lines with app promotion - #295
Conversation
Validate candidate version configuration independently of the contributor trust gate, reuse the base branch validator, and fail the final docs check on skipped builds. Upload generated HTML and add configuration regressions without modifying versions.json. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Validate and reconcile retained release lines, preserve exact-tag redirects, and isolate manifest promotion from Pages builds. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Merge PR #292 while preserving release-line publishing and App authentication. Load the trusted base's standalone manifest validator directly, with an explicit legacy-validator fallback for the first rollout. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Consolidated the CI-enforcement work from #292 into this PR in commit 55c1599. The existing stable release-line manifest, exact-tag redirects, expanded Additions:
First-rollout adaptation: the isolated loader imports trusted Verification: 24 Python tests, 6 JavaScript selector tests, the real exact-release Doxygen build, and workflow YAML parsing pass. Executed the actual workflow validator with both current-main legacy code and the new standalone validator, including invalid manifests and hostile candidate modules; no candidate Python executed. Executed all 16 configuration/build result combinations: only success/success passes the aggregator. Administrator follow-up: configure branch protection/rulesets to require Documentation checks. The App installation/repository access, organization variable/secret visibility, protected-main App bypass, and Pages environment authorization remain administrator setup; provisioning the App alone does not establish those. No settings/secrets were changed, and no deployment or PR merge was performed. The changes from #292 are now included here; #292 can be closed separately after confirming this consolidation. |
Remove hourly promotion and main-push publishing triggers. Keep completion-driven release deployment, manual promotion/rebuild, App isolation and stale-artifact safeguards. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Summary
v0.27.1andv0.26.19without historical-line backfill.versions/X.Y/pages with an X.Y selector and visible exact-patch labels. Preserve previously published exact-tag HTML URLs with equivalent page/query/fragment redirects; removed symbols/pages are not guaranteed.vars.C2PA_DOCS_APP_IDandsecrets.C2PA_DOCS_APP_PRIVATE_KEY, minting a repository-scoped Contents-write installation token isolated from dependency installation, generation and deployment. No ordinary-token bypass fallback.Publishing triggers and recovery
Automatic publishing is release-driven only.
promote-docs.ymlruns on release publication and manual dispatch; there is no hourly or other schedule. It promotes stable releases, excluding prerelease publications from manifest updates.publish-docs.ymlbuilds/deploys current main after successful promotion-workflow completion, even when reconciliation is a no-op, or on its own manual dispatch. Main pushes do not publish; CI validation on main pushes and pull requests remains unchanged.Build/deploy pairs are serialized, and artifacts superseded by main changes during a build are skipped. A pending release/manual run can rebuild current main; otherwise manually rebuild after main settles. Pages/OIDC write permissions remain limited to deployment. No live workflow dispatch or deployment was performed for this change.
Validation
v0.27.1andv0.26.19sources and generated the default root. Existing release-README unresolved-link warnings remain. Previously executed all 544 generated alias redirects and verified exact-patch labels, page/query/fragment preservation and root default.git diff --checkpasses.External prerequisites / rollout
Organization App creation alone does not establish repository access or protected-main bypass. Administrators must verify the App installation includes this repository with Contents read/write, organization variable/secret access policies expose the named credentials here, and main protections permit this App's manifest commits. GitHub does not provide file-scoped Contents grants; the updater enforces a fixed manifest-only write endpoint.
Configure branch protection/rulesets to require Documentation checks. During the first rollout, current main lacks
scripts/docs_versions.py: the independent configuration check explicitly uses trusted base legacy tag-list validation, not candidate code. The authorized docs build/tests enforce the full new schema now; after this PR lands, the independent check also enforces that schema.Pages must use GitHub Actions and the
github-pagesenvironment must permit deployment. App authentication, protected-main bot writes, workflow chaining and live Pages deployment have not been exercised. No settings/secrets were changed, and no deployment or PR merge was performed.Human-reviewed pruning removes the selected line and its aliases and adds a retirement marker while retaining at least one active line.