Skip to content

chore: bring the repository up to canon - #10

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

AlbinoGeek merged 3 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

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 CI bypass lets the secret-scanning gate report success without running gitleaks, allowing secret-bearing commits to pass because local hooks are not guaranteed to run.

1 open issue
What changed in this PR

This PR aligns repository automation with canon audit requirements by adding workflow limits and a local pre-push quality gate.

Changes:

  • Add concurrency cancellation and job timeouts to three security workflows.
  • Run gate before pushes while retaining the pre-commit gitleaks scan.
  • Add a gitleaks gate configuration that scans locally but skips scanning when CI is set.
File Description
lefthook.yml Adds the pre-push gate hook.
.github/​workflows/​scorecard.yml Adds concurrency cancellation and a 10-minute timeout.
.github/​workflows/​dependency-review.yml Adds concurrency cancellation and a 10-minute timeout.
.github/​workflows/​codeql.yml Adds concurrency cancellation and a 60-minute timeout.
.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'
Merged via the queue into main with commit db28210 Nov 11, 2026
4 checks passed
@AlbinoGeek
AlbinoGeek deleted the chore/canon-conformance branch November 11, 2026 09:12
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