Commit be92a63
fix(security): replace broken jobs in OSS-CLI security workflow
PR #91's first run surfaced four breakages in the new security.yml; this
commit fixes each in place so the (B) stack actually runs:
- osv-scanner: google/osv-scanner-action's action.yml has no top-level
`runs:` (it is meta-only). Replace the action with a `gh release
download` of the official `osv-scanner_linux_amd64` v2.3.5 binary,
then run `osv-scanner --recursive --skip-git ./`. Uses the
preinstalled `gh` CLI so no curl/wget per CLAUDE.md.
- semgrep: the pinned `semgrep/semgrep@sha256:...` digest does not
exist in the registry, so `Initialize containers` fails before any
code runs. Drop the container and install Semgrep via
`actions/setup-python@v6.2.0` (SHA-pinned) + `pip install semgrep`,
then `semgrep scan --error --severity ERROR --metrics off` against
p/security-audit + p/owasp-top-ten + p/java.
- gitleaks: gitleaks-action requires a paid license for orgs
(RandomCodeSpace is an org → upstream blocks the run). The CLI
itself is MIT-licensed and free. Replace the action with a
`gh release download` of the v8.30.1 linux_x64 tarball and run
`gitleaks detect --redact --no-banner --exit-code 1`.
- jscpd: `--languages` is not a valid CLI option in jscpd@4. Use
`--format "java,javascript,typescript"` (the documented flag).
Trivy + SBOM jobs already pass and are unchanged.
References:
* RAN-46 board ruling comment fa5ba510 (path B)
* PR #91 first-run failures: OSV/Semgrep/Gitleaks/jscpd
* /home/dev/.claude/CLAUDE.md (no-curl, ctx fetch policy)
Co-Authored-By: Paperclip <noreply@paperclip.ing>1 parent 05ea72f commit be92a63
1 file changed
Lines changed: 48 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
25 | 28 | | |
26 | 29 | | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
33 | 43 | | |
34 | 44 | | |
35 | 45 | | |
| |||
51 | 61 | | |
52 | 62 | | |
53 | 63 | | |
54 | | - | |
55 | | - | |
56 | 64 | | |
57 | 65 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
61 | 80 | | |
62 | 81 | | |
63 | 82 | | |
64 | 83 | | |
65 | 84 | | |
66 | 85 | | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
67 | 89 | | |
68 | 90 | | |
69 | 91 | | |
70 | 92 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
74 | 107 | | |
75 | 108 | | |
76 | 109 | | |
| |||
86 | 119 | | |
87 | 120 | | |
88 | 121 | | |
89 | | - | |
| 122 | + | |
90 | 123 | | |
91 | 124 | | |
92 | 125 | | |
| |||
0 commit comments