Skip to content

Keep PR documentation builds from publishing GitHub Pages - #2

Merged
wonjun-lab merged 1 commit into
mainfrom
fix/ci-pages-publication-guard-20261008
Oct 8, 2026
Merged

wonjun-lab merged 1 commit into
mainfrom
fix/ci-pages-publication-guard-20261008

Conversation

@wonjun-lab

@wonjun-lab wonjun-lab commented Oct 8, 2026 •

Copy link
Copy Markdown
Member

A documentation PR could publish the public site: run29936805366 (July22) successfully force-pushed gh-pages from a pull_request event. The workflow now builds on the same main push, PR and manual triggers with a read-only token, then passes its existing HTML output through a one-day artifact to a separate publish job.

Publication requires a successful ci job, refs/heads/main, and a push or manual event. Only that publish job receives contents:write. PR builds retain the original Python3.10 dependency and Sphinx commands and cannot run the publisher. The target branch, HTML directory, self-hosted runner and force-orphan publication behavior on approved main runs are preserved.

Validation: actionlint v1.7.12 and diff checks pass. Exact uv sync --all-groups and uv run sphinx-build -M html doc/source doc/build commands pass locally (90 existing documentation warnings). Hosted run37726993414 passes ci (3.10) in6m33s, including the unchanged documentation build and one-day artifact upload; publish is SKIPPED. Its actual token reports only Contents:read and Metadata:read. The worker does not merge this PR or deploy Pages; merging into main invokes publication and needs the orchestrator's separate deployment approval handling.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-08T04:22:31.699373Z 7aae1d4 PR opened
🔒 Security Review ✅ Completed 2026-10-08T04:22:53.043890Z 7aae1d4 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@wonjun-lab
wonjun-lab merged commit 690b226 into main Oct 8, 2026
2 checks passed
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