Conversation
|
Is this finished and waiting for a review? |
gitleaks/gitleaks-action@v2 requires a paid GITLEAKS_LICENSE secret for repos owned by organisations, which caused the scan to fail on PR #149. The CLI (free under MIT) provides equivalent scanning and is the pattern already used across smartem-frontend, smartem-devtools, fandanGO-cryoem-dls, and smartem-decisions.
This repo previously had no secret scanning. Add gitleaks to align with all other DLS repos. - Add gitleaks CI workflow - Add lefthook with gitleaks pre-push hook - Add lefthook as devDependency with prepare script - Add empty .gitleaks.toml (no known false positives) Note: run `pnpm install` to update lockfile after merging. Ref: DiamondLightSource/smartem-devtools#139 See: ADR-0018 in smartem-devtools
gitleaks/gitleaks-action@v2 requires a paid GITLEAKS_LICENSE secret for repos owned by organisations, which caused the scan to fail on PR #149. The CLI (free under MIT) provides equivalent scanning and is the pattern already used across smartem-frontend, smartem-devtools, fandanGO-cryoem-dls, and smartem-decisions.
0c39c83 to
2ac59e2
Compare
The gitleaks commit added lefthook as a devDependency in package.json but didn't update the lockfile. CI runs with --frozen-lockfile and blocks on the drift. Regenerate lockfile to match package.json.
|
PR #141 has pnpm.overrides that pins vulnerable transitive deps (including Correct sequencing:
PR #141 is exactly for this (title: "version updates for npm deps flagged up as vulnerable by |
|
In the context section you've said PR #163 deals with the lodash patch. |
Yeah sorry that came from Claude - it meant the other 4 repos I work on |
Summary
"prepare": "lefthook install"script.gitleaks.tomlplaceholder (no known false positives)Context
Audit of all DLS repos found that sci-react-ui was the only repo without any secret scanning. Adding gitleaks aligns it with the other four DLS repos.
Ref: DiamondLightSource/smartem-devtools#139
See: ADR-0018 in smartem-devtools
Test plan
gitleaks detect --source .locally confirms no findingspnpm installto generate lockfile update (not included in this PR)gitleaks protect --staged --redact)