Skip to content

Harden CI: fail-closed tag guards + gh-safe mutation wrapper - #391

Merged
Finesssee merged 1 commit into
mainfrom
chore/ci-hardening-gh-safe
Aug 28, 2026
Merged

Harden CI: fail-closed tag guards + gh-safe mutation wrapper#391
Finesssee merged 1 commit into
mainfrom
chore/ci-hardening-gh-safe

Conversation

@Finesssee

Copy link
Copy Markdown
Collaborator

Summary

CI hardening for the C1 cluster — six files, four modified plus two new scripts:

  • .circleci/config.yml (+16): fail-closed tag guards in CircleCI config.
  • scripts/gh-safe.sh (new): sole wrapper for GitHub mutation commands. Enforces repo allowlist (nesszer/Win-CodexBar only; upstream steipete/CodexBar writes blocked without explicit --allow-upstream-write), verifies the repo/target by read-back before executing, and rejects any forwarded --repo/-R override.
  • scripts/gh-safe.tests.sh (new): tests for the gh-safe wrapper.
  • .github/workflows/pr-check.yml (+10/-8): fix interaction-guard test invocation — the workflow previously ran production main() instead of the tests; now runs node --test .github/scripts/interaction-guard.test.mjs. Also drops the redundant push trigger and bumps pnpm to 11 / Node to 24.
  • scripts/local-check.ps1 (+1): sync with gh-safe policy.
  • AGENTS.md (+5): documents the gh-safe mutation policy.

Test plan

  • CircleCI config passes lint/validation
  • pr-check.yml workflow triggers correctly on PRs
  • gh-safe wrapper tests pass locally (scripts/gh-safe.tests.sh)

@Finesssee
Finesssee force-pushed the chore/ci-hardening-gh-safe branch from ec93847 to 370ed09 Compare August 28, 2026 01:58
@Finesssee
Finesssee merged commit 41a7655 into main Aug 28, 2026
1 check passed
@Finesssee
Finesssee deleted the chore/ci-hardening-gh-safe branch August 28, 2026 04:19
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