Skip to content

chore: bring the repository up to canon - #10

Merged
AlbinoGeek merged 2 commits into
mainfrom
chore/canon-conformance
Nov 11, 2026
Merged

AlbinoGeek merged 2 commits into
mainfrom
chore/canon-conformance

Conversation

@AlbinoGeek

Copy link
Copy Markdown
Member

Fixes the weaker-than-canon items from the Totative canon audit for this repository (each verified first): workflow concurrency with cancel-in-progress and job timeouts (patterns-ci-workflow-00002/00003), canon's lefthook with the pre-push gate (patterns-gitleaks-00003), plus the repository-specific items in the commits. Gate green locally, no rule disabled.

Copilot AI balanced review requested due to automatic review settings November 11, 2026 09:09
@AlbinoGeek
AlbinoGeek enabled auto-merge November 11, 2026 09:09
@AlbinoGeek
AlbinoGeek added this pull request to the merge queue Nov 11, 2026
Merged via the queue into main with commit 75f922d Nov 11, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The gate bypasses gitleaks whenever CI is nonempty, allowing unscanned commits through because local pre-commit hooks can be skipped or never run.

1 open issue
What changed in this PR

This PR aligns local hooks and workflow execution with the repository’s canon audit requirements.

Changes:

  • Adds a pre-push gate check while retaining pre-commit secret scanning.
  • Cancels superseded copy-sync workflow runs on the same ref.
  • Adds a gitleaks gate configured to scan locally and skip scanning when CI is set.
File Description
lefthook.yml Adds the pre-push gate hook.
.github/​workflows/​copy-sync.yml Adds workflow concurrency and cancellation.
.gate.toml Defines the gitleaks gate with a CI bypass.

Review effort: Balanced

Comment thread .gate.toml
Comment on lines +1 to +5
# No-op in CI, which never uses --no-verify and already scanned every commit on
# the way in, so a second scan there spends runner minutes to repeat it. The
# guard is what keeps one definition serving both hooks.
[gates.gitleaks]
run = '[ -n "$CI" ] || gitleaks git --redact --no-banner --log-level warn'
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.

2 participants