Commit 05ea72f
committed
chore(security): revert to OSS-CLI stack (RAN-46 path B board ruling)
Closes the RAN-46 board ruling (comment fa5ba510): swap shipped Sonar +
CodeQL + OWASP Dependency-Check (path A) for the AC-mandated OSS-CLI
stack (path B).
What lands:
+ .github/workflows/security.yml — six SHA-pinned jobs: OSV-Scanner
(SCA via OSV.dev / GHSA, not NVD), Trivy (filesystem + container),
Semgrep (SAST: p/security-audit + p/owasp-top-ten + p/java),
Gitleaks (secret scan over full git history), jscpd (duplication
< 3% on Java/JS/TS), anchore/sbom-action (SPDX + CycloneDX SBOM
artifacts). Top-level `permissions: read-all`. Runs on push to
main, every PR, and Mondays 04:21 UTC cron.
What's removed:
- .github/workflows/ci-java.yml — strips the SonarCloud step and the
OWASP Dependency-Check NVD prewarm + cache step. ci-java.yml now
just runs `mvn -B -ntp clean verify` (tests + jacoco 85% +
SpotBugs) and uploads test/coverage artifacts.
- pom.xml — drops `dependency-check-maven` plugin block + its
`<owasp.dependency-check.version>` property. JaCoCo 85% gate
+ SpotBugs binding stay.
- dependency-check-suppressions.xml — deleted (no longer needed; OSV
+ Trivy use their own suppression mechanisms).
- README.md — drops Sonar `security_rating` + `reliability_rating`
badges, replaces with a Security (OSS-CLI) workflow-status badge.
- shared/runbooks/engineering-standards.md §1 quality-gate table —
rewritten to list the OSS-CLI gates (OSV / Trivy / Semgrep /
Gitleaks / jscpd / SBOM); §5 Security expanded with explicit "OSS-CLI
only — do not re-introduce Sonar/CodeQL/NVD without an explicit
board ruling reversal" guard; §9 References updated.
Coverage gate stays at 85% (jacoco BUNDLE LINE COVEREDRATIO). SpotBugs
stays as the Java lint gate (per AC §5 — checkstyle/spotbugs/error-prone
are the eligible Java linters).
Followups (not in this PR):
* Disable CodeQL default-setup via repo Settings → Code security →
Code scanning (or `gh api -X DELETE /repos/.../code-scanning/
default-setup` once available). Tracked under post-merge action.
* Branch-protection `required_status_checks` will be updated post-
merge to require the new security.yml jobs in place of `build` +
Sonar + CodeQL.
References:
* RAN-46 AC §3 (security tooling — OSS-CLI ONLY)
* Board ruling comment fa5ba510 on RAN-46 (path B)
* OpenSSF Scorecard: Pinned-Dependencies, Token-Permissions1 parent 6c3b9e9 commit 05ea72f
7 files changed
Lines changed: 150 additions & 325 deletions
File tree
- .github/workflows
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
41 | | - | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 25 | + | |
58 | 26 | | |
59 | 27 | | |
60 | 28 | | |
| |||
65 | 33 | | |
66 | 34 | | |
67 | 35 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | | - | |
| 13 | + | |
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
| |||
This file was deleted.
0 commit comments