Skip to content

fix(ci): self-provision GitHub Pages so casket-pages.yml stops failing on main#404

Merged
hyperpolymath merged 1 commit into
mainfrom
ci/enable-pages-self-provision
May 27, 2026
Merged

fix(ci): self-provision GitHub Pages so casket-pages.yml stops failing on main#404
hyperpolymath merged 1 commit into
mainfrom
ci/enable-pages-self-provision

Conversation

@hyperpolymath
Copy link
Copy Markdown
Owner

Summary

Orphan branch surfaced during 2026-05-27 estate sweep — 1 commit ahead of main, no PR ever filed. Self-provisions GitHub Pages so casket-pages.yml stops failing.

Co-Authored-By: Claude Opus 4.7 (1M context) noreply@anthropic.com

…g on main

Every push to main has been failing with:

  ##[error]Get Pages site failed. Please verify that the repository has
  Pages enabled and configured to build using GitHub Actions, or consider
  exploring the `enablement` parameter for this action.
  Error: Not Found - https://docs.github.com/rest/pages/pages

Root cause: GitHub Pages was never enabled for the repo at the GitHub
level. `gh api repos/hyperpolymath/affinescript/pages` returns 404. The
casket-pages.yml workflow has been hitting the Setup Pages step
(actions/configure-pages) without `enablement: true` and failing the
build job on every main push since the workflow was added.

This poisons the baseline: every rebase from main pulls in a known-red
state. Audited 2026-05-26 while diagnosing affinescript PR #359's
inherited failure — PR #359 was a pure file-move and ALSO failed CI;
proves the failure source is upstream of any PR's changes.

Fix: add `enablement: true` to the configure-pages step. The action's
own permissions (pages: write, id-token: write, already granted in
the workflow) authorise the enablement call; this is idempotent across
subsequent runs.

Cross-references:
- session_2026_05_26_three_repo_ci_remediation.md (this thread)
- affinescript inherited-baseline notes in STATE.a2ml session-note-2026-05-26

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@hyperpolymath hyperpolymath merged commit 417fd9b into main May 27, 2026
15 of 24 checks passed
@hyperpolymath hyperpolymath deleted the ci/enable-pages-self-provision branch May 27, 2026 13:25
@github-actions
Copy link
Copy Markdown

🔍 Hypatia Security Scan

Findings: 56 issues detected

Severity Count
🔴 Critical 4
🟠 High 11
🟡 Medium 41

⚠️ Action Required: Critical security issues found!

View findings
[
  {
    "reason": "Action actions/checkout@v6 needs attention",
    "type": "unpinned_action",
    "file": "publish-jsr.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Action denoland/setup-deno@v2 needs attention",
    "type": "unpinned_action",
    "file": "publish-jsr.yml",
    "action": "pin_sha",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in affine-vscode-publish.yml",
    "type": "unknown",
    "file": "affine-vscode-publish.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in casket-pages.yml",
    "type": "unknown",
    "file": "casket-pages.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in casket-pages.yml",
    "type": "unknown",
    "file": "casket-pages.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in ci.yml",
    "type": "unknown",
    "file": "ci.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in ci.yml",
    "type": "unknown",
    "file": "ci.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in ci.yml",
    "type": "unknown",
    "file": "ci.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in ci.yml",
    "type": "unknown",
    "file": "ci.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  },
  {
    "reason": "Issue in ci.yml",
    "type": "unknown",
    "file": "ci.yml",
    "action": "flag",
    "rule_module": "workflow_audit",
    "severity": "medium"
  }
]

Powered by Hypatia Neurosymbolic CI/CD Intelligence

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