Repository navigation
The first tagged release. It fixes a security bug in --stack secrets
and adds opt-in CI security gates.
Security
--stack secretsdetected nothing (#27). The generated
.gitleaks.tomllacked[extend] useDefault = true, so it replaced
gitleaks' default rules with an empty set. gitleaks loads that file
automatically, so the pre-commit hook and the CI scan in every
project generated with the stack reported "no leaks found".- Affected: every project generated with
--stack secrets
before this release. - Fix: add these two lines to
.gitleaks.toml, or review a full
regeneration withsunaba rebuild <name> --dry-run:[extend] useDefault = true
sunaba syncnow warns about affected registered projects.
- Affected: every project generated with
Added
--stack security-ci(#28), opt-in merge gates in
.github/workflows/security-scan.yml:SAST (Semgrep):p/security-audit+p/owasp-top-ten, run with
--errorso findings block, from a digest-pinned image.Dependency Scan (Trivy): every lockfile type (npm, pnpm, yarn,
bun, uv, poetry, pip, Go, Cargo, …).- Runs from a pinned, checksum-verified release binary.
- Informational until the repository variable
SUNABA_TRIVY_BLOCKINGistrue. - Writes a job summary.
- No
paths:filters, so both checks can be required. - Every scanner failure fails the job.
scripts/protect-branch.sh(with--stack security-ci) makes
the checks required through a GitHub repository ruleset.- It covers the default branch plus any
--branch, for example
staging. - It blocks force pushes and branch deletion, with no bypass.
- A preflight refuses to require checks that have not yet passed,
and each check is bound to GitHub Actions. - It is idempotent and supports
--dry-run.
- It covers the default branch plus any
docs/security/with the gate maturity ladder, triage, gate
self-protection, and scanner-update steps.THIRD_PARTY_NOTICES.md. Generated projects also get a copy under
docs/secrets/ordocs/security/.CHANGELOG.md.
Changed
- The
--stack secretsCI workflow (#27):- no longer uses
gitleaks/gitleaks-action, which needs a license
key on organization repositories; - runs a version-pinned, SHA-256-verified gitleaks binary;
- scans the commits a PR adds, the full history of every pushed
ref, and every ref on manual runs; - fails closed when git errors (gitleaks/gitleaks#2129);
- ignores inline
gitleaks:allowand redacts matches; - runs with
permissions: contents: read.
- no longer uses
--stack secretsalso changed in these ways:- The pre-commit hook is frozen to the gitleaks v8.30.1 commit
instead of a tag. .gitleaks.tomlno longer allowlists.env*.exampleby path, so
a real key pasted into an example file is caught.
- The pre-commit hook is frozen to the gitleaks v8.30.1 commit
- Every GitHub Action in generated workflows, and in sunaba's own CI,
is pinned to a full commit SHA. sunaba --versionreports the real version. It said 0.2.1 while the
package was 0.2.2.
Internal
- sunaba's CI now:
- scans its own history with gitleaks;
- runs the generated
security-scan.ymlon itself; - runs contract tests against the real gitleaks and Trivy binaries;
- audits every workflow for SHA-pinned actions and digest-pinned
images.
- The
mainbranch is protected by thesunaba security gates
ruleset.
Credits
The hardened gitleaks workflow, the gitleaks policy, the SHA-pin audit,
and the security-ci gate layout, maturity ladder, and protection helper
are adapted from
northraystudio/maruda (MIT,
© 2026 NorthRay Studio株式会社). Design records are in
thinking/2026-09-24-maruda-adoption/
and
thinking/2026-09-24-security-ci-gates/.
Install
uv tool install git+https://github.com/morimorijap/sunaba-cli@v0.3.0
# or, if already installed:
sunaba upgradeFull changelog: CHANGELOG.md