Skip to content

ci(secret-scan): canonical estate scanner caller, key scan (D243) - #33

Merged
hyperpolymath merged 1 commit into
mainfrom
ci/secret-scan-floor-caller
Oct 1, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
ci/secret-scan-floor-caller

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

What

Write the canonical estate secret-scanner caller to .github/workflows/secret-scanner.yml so this repo emits scan / gitleaks, the context the estate Secret-Scan-Floor ruleset (D243/D244) requires. This repo had no secret-scanner caller.

Job key scan; reusable hyperpolymath/standards/.github/workflows/secret-scanner-reusable.yml@74d2f66f575246cf6e313ae7775f44df6e097ff2; push trigger on main. actionlint clean (previous file findings: n/a). Commit via GraphQL createCommitOnBranch (GitHub-signed, valid: true).

🤖 Generated with Claude Code

https://claude.ai/code/session_0136eszqrQ53Kj7aBH1D4rXK

Secret-Scan-Floor (D243/D244) requires the context `scan / gitleaks` estate-wide. This repo had no secret-scanner caller. Write the canonical caller: job key `scan`, reusable pinned to standards@74d2f66, push trigger on the default branch `main`.

actionlint: new file clean (findings in previous file: n/a).

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_0136eszqrQ53Kj7aBH1D4rXK
@coderabbitai

coderabbitai Bot commented Oct 1, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: fe8d425f-88fd-43c8-9446-4f1509047fdc

📥 Commits

Reviewing files that changed from the base of the PR and between e4aa5a1 and c495770.

📒 Files selected for processing (1)
  • .github/workflows/secret-scanner.yml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

📜 Recent review details
⏰ Context from checks skipped due to timeout. (6)
  • GitHub Check: scan / rust-secrets
  • GitHub Check: scan / gitleaks
  • GitHub Check: build
  • GitHub Check: estate-audit
  • GitHub Check: CodeQL Analysis (actions, none)
  • GitHub Check: semgrep-cloud-platform/scan
⚠️ CI failures not shown inline (2)

GitHub Actions: Central Estate CI/CD Audit / 0_estate-audit.txt: ci(secret-scan): canonical estate scanner caller, key scan (D243)

Conclusion: failure

View job details

##[group]Run # Accepted placements widened per owner ruling 2026-09-19: estate
 �[36;1m# Accepted placements widened per owner ruling 2026-09-19: estate�[0m
 �[36;1m# repos legitimately keep governance docs under docs/ (and GitHub�[0m
 �[36;1m# renders under .github/) — rsr-template-repo itself was failing on�[0m
 �[36;1m# layout, not on substance. Root forms still win (first hit).�[0m
 �[36;1m# Template-repo mode: see below.�[0m
 �[36;1m#�[0m
 �[36;1m# Presence-only checking rewards filler. This gate previously demanded�[0m
 �[36;1m# ARCHITECTURE.md / MAINTAINERS.adoc / GOVERNANCE.md and checked only�[0m
 �[36;1m# that the paths existed — so the cheapest way to pass was to commit�[0m
 �[36;1m# template boilerplate. That happened: an estate repo acquired an�[0m
 �[36;1m# ARCHITECTURE.md describing a directory layout it does not have, a�[0m
 �[36;1m# MAINTAINERS naming a different account as owner, and a mise.toml�[0m
 �[36;1m# pinning `zig = "latest"` against that repo's own .tool-versions.�[0m
 �[36;1m# All three would have passed. So: presence, THEN format, THEN substance.�[0m
 �[36;1m#�[0m
 �[36;1m# Format policy (estate):�[0m
 �[36;1m#   .adoc  documentation (default)�[0m
 �[36;1m#   .md    wiki content only — plus a transitional allowance for the�[0m
 �[36;1m#          GitHub-mandated files, which are migrating to berrywiki format�[0m
 �[36;1m#   .txt   licence texts�[0m
 �[36;1m#   fixed  names GitHub or convention dictates (CODEOWNERS, funding.yml,�[0m
 �[36;1m#          NOTICE, AUTHORS, MAINTAINERS) keep their form�[0m
 �[36;1mset -uo pipefail�[0m
 �[36;1mfail=0�[0m
 �[36;1m�[0m
 �[36;1m# --- template-repo mode -------------------------------------------�[0m
 �[36;1m# An un-instantiated template legitimately SHIPS {{OWNER}}/{{AUTHOR}}�[0m
 �[36;1m# placeholders and self-references its own template name; judging it�[0m
 �[36;1m# like an instantiated repo is a category error. Detection is explicit�[0m
 �[36;1m# and auditable: the repo name says it is a temp...

GitHub Actions: Central Estate CI/CD Audit / estate-audit: ci(secret-scan): canonical estate scanner caller, key scan (D243)

Conclusion: failure

View job details

##[group]Run # Accepted placements widened per owner ruling 2026-09-19: estate
 �[36;1m# Accepted placements widened per owner ruling 2026-09-19: estate�[0m
 �[36;1m# repos legitimately keep governance docs under docs/ (and GitHub�[0m
 �[36;1m# renders under .github/) — rsr-template-repo itself was failing on�[0m
 �[36;1m# layout, not on substance. Root forms still win (first hit).�[0m
 �[36;1m# Template-repo mode: see below.�[0m
 �[36;1m#�[0m
 �[36;1m# Presence-only checking rewards filler. This gate previously demanded�[0m
 �[36;1m# ARCHITECTURE.md / MAINTAINERS.adoc / GOVERNANCE.md and checked only�[0m
 �[36;1m# that the paths existed — so the cheapest way to pass was to commit�[0m
 �[36;1m# template boilerplate. That happened: an estate repo acquired an�[0m
 �[36;1m# ARCHITECTURE.md describing a directory layout it does not have, a�[0m
 �[36;1m# MAINTAINERS naming a different account as owner, and a mise.toml�[0m
 �[36;1m# pinning `zig = "latest"` against that repo's own .tool-versions.�[0m
 �[36;1m# All three would have passed. So: presence, THEN format, THEN substance.�[0m
 �[36;1m#�[0m
 �[36;1m# Format policy (estate):�[0m
 �[36;1m#   .adoc  documentation (default)�[0m
 �[36;1m#   .md    wiki content only — plus a transitional allowance for the�[0m
 �[36;1m#          GitHub-mandated files, which are migrating to berrywiki format�[0m
 �[36;1m#   .txt   licence texts�[0m
 �[36;1m#   fixed  names GitHub or convention dictates (CODEOWNERS, funding.yml,�[0m
 �[36;1m#          NOTICE, AUTHORS, MAINTAINERS) keep their form�[0m
 �[36;1mset -uo pipefail�[0m
 �[36;1mfail=0�[0m
 �[36;1m�[0m
 �[36;1m# --- template-repo mode -------------------------------------------�[0m
 �[36;1m# An un-instantiated template legitimately SHIPS {{OWNER}}/{{AUTHOR}}�[0m
 �[36;1m# placeholders and self-references its own template name; judging it�[0m
 �[36;1m# like an instantiated repo is a category error. Detection is explicit�[0m
 �[36;1m# and auditable: the repo name says it is a temp...
🔇 Additional comments (1)
.github/workflows/secret-scanner.yml (1)

1-27: LGTM!


📝 Summary

Summary by CodeRabbit

  • Security
    • Secret scanning now runs automatically for pull requests and updates to the main branch. If a scan is already running for the same workflow and branch, it is cancelled before a new one begins. This adds an automated security check to the development process without changing the app’s features or behaviour.

Walkthrough

The pull request adds a GitHub Actions workflow that runs the pinned reusable secret-scanner workflow for pull requests and pushes to main.

Changes

Secret scanning

Layer / File(s) Summary
Configure the secret-scanner workflow
.github/workflows/secret-scanner.yml
The workflow runs on pull requests and pushes to main. It cancels in-progress runs for the same workflow and ref, grants contents: read, and delegates its scan job to a reusable workflow pinned to a commit.

Priority: ➖ Normal

Estimated code review effort: 2 (Simple) | ~10 minutes

Change: Feature

Merge Risk: ⚪ Minimal · up to c4957

Pull requests run the pinned scanner and produce the required check context; no actionable merge-blocking risk was identified.

Architecture Summary

Architecture risk: 🔵 Low · up to c4957

The changed surface does not map to a changed system, dependency edge, entrypoint, or external dependency.

Changed systems: None identified.

Architecture concerns
No architecture-level concerns identified.

Review details

Before / after behavior

  • observed — Modified behavior in .github/workflows/secret-scanner.yml: Adds a workflow with pull-request and main-push triggers, ref-based concurrency with cancellation, read-only contents permission, and a scan job using the reusable workflow at a pinned commit.
🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly identifies the CI secret-scanner workflow and the required job key. It matches the main change.
Description check ✅ Passed The description explains the new secret-scanner caller, its triggers, reusable workflow, job key, and validation results. It is directly related to the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Commit to this branch
  • Create a new PR
  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Autopilot is currently an internal CodeRabbit preview.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

A rabbit checks the workflow run,
Pull requests start when changes come.
A push to main can start it too,
The pinned scanner checks each view.
With read-only access, it scans along,
Then bounds away when checks are done.

Comment @coderabbitai help to get the list of available commands.

@hyperpolymath
hyperpolymath merged commit a95c68e into main Oct 1, 2026
10 of 12 checks passed
@hyperpolymath
hyperpolymath deleted the ci/secret-scan-floor-caller branch October 1, 2026 23:42
hyperpolymath added a commit that referenced this pull request Nov 9, 2026
secret-scanner.yml called a remote reusable at job level
(hyperpolymath/standards secret-scanner-reusable@74d2f66) and failed at
startup with zero jobs on every run since #33. This is the template's own
fix (hyperpolymath/rsr-template-repo 2be7b88, its #295): three ordinary
jobs whose names are the contexts scan / gitleaks, scan / rust-secrets,
scan / shell-secrets, baseline pinned to metadatastician/standards
e064539. Job bodies unchanged; checkout pinned by marches' lock tag
v7.0.1, which resolves to the template's commit 3d3c42e. Header rewritten
for marches (the template's ruleset claims do not apply here).

actions.lock gains the workflow's entry by hand, in the generator's shape
and order, with no new dependency (the relock bot needs AUTOMATION_TOKEN).

Run locally first: gitleaks 8.18.4 (sha256 OK), estate baseline, working
tree and full history: no leaks; shell job: none; rust job: skips (no
Cargo.toml). actionlint 1.7.7 clean.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01VTeVWDEJgdYKsUNr4uhnXX
hyperpolymath added a commit that referenced this pull request Nov 9, 2026
…secret scanner (#59)

Two commits from the 2026-11-09 close-out review. This session may push
to only one branch, so they share one PR; each commit stands alone.

## 1. `7d4b929`: proof status under the estate proof policy

marches is *theory* under `standards` `3-practice/PROOF-POLICY.adoc` §1.
Agda is therefore the source of truth, rechecked in Rocq and Lean, with
no Mathlib. marches' Lean development predates that ruling, so by §3 it
is target-only evidence: every theorem's Agda row is `OPEN` and nothing
has a Proof Witness Grade. marches had no proof-status file, and
mathesis lists it with `status_doc: ""`.

- **New `PROOF-STATUS.adoc`** with the §8.5 fields per theorem group:
  - each leg with its route, status token and §2.2 state;
  - `ungraded` throughout, with the denominator;
  - the Lean leg receipt;
  - the plan to reach `PWG-3`, then `PWG-2i`, then `PWG-2ii`.
- **Lean receipt on `abe636a`, v4.35.0.**
  - `lake build` succeeds (19 jobs).
  - No `sorry`, `admit`, `axiom`, `native_decide` or `extern`.
- `Lean.collectAxioms` over all **446** `Marches` declarations: 402 use
no axioms, 41 use `propext`, 3 use `propext` and `Quot.sound`. None uses
`sorryAx` or `Classical.choice`.
- Groups that rest on `propext` are recorded `PROVEN-WITH-AXIOMS`,
naming it.
  - Every cited name was checked with `#check`, and all resolve.
- **`CLAUDE.md`** now defers to the estate policy instead of saying
"Lean 4 for proofs".
- **`README.adoc`**: the status table now says its `PROVEN` means
"accepted by the Lean kernel".
- **`ROADMAP.adoc`**: a new Agda section ahead of rung 4. This is your
decision of 2026-11-09.

## 2. `6db6c0a`: secret scanner inline, from the RSR template

`secret-scanner.yml` called a remote reusable at the job level. It has
failed at startup, with zero jobs, on every run since #33. This commit
applies the template's own fix (rsr-template-repo `2be7b88`, its #295):
three ordinary jobs, `scan / gitleaks`, `scan / rust-secrets` and `scan
/ shell-secrets`, with the baseline pinned to
`metadatastician/standards@e064539`.

- The job bodies are unchanged from the template.
- `actions/checkout` is pinned by the tag in marches' lock (`v7.0.1`),
which resolves to the template's commit `3d3c42e`.
- The header is rewritten for marches. The template's ruleset claims
don't apply here.
- `actions.lock` gains the workflow's entry by hand, in the generator's
shape and order, with no new dependency. The relock bot can't do it
until `AUTOMATION_TOKEN` exists.
- I ran the jobs locally before pushing:
- gitleaks 8.18.4 (sha256 verified) with the estate baseline, over the
working tree and the full 68-commit history: no leaks;
  - the shell job: no credentials detected;
  - the rust job: skips, because marches has no `Cargo.toml`.
- actionlint is clean.

This PR's own run of the new workflow is the end-to-end check.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01VTeVWDEJgdYKsUNr4uhnXX

---------

Co-authored-by: Claude Opus 5.5 <[email protected]>
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