Skip to content

Commit 219c87f

Browse files
author
MILTONADINA
committed
ci: remove broken OWASP Dependency-Check job (redundant with Trivy)
The advisory OWASP Dependency-Check job failed on every run ("JAVA_HOME is not defined correctly" inside the action's container, and no NVD API key), leaving a permanent red check on every commit and Dependabot PR despite continue-on-error. It is redundant with the enforced Trivy SCA gate (same Maven dependencies, passing) and Dependabot updates, so removing it yields a fully green, non-redundant security pipeline: CodeQL, Semgrep, Trivy, gitleaks, find-sec-bugs, Dependabot. Docs (README, SECURITY.md, CHANGELOG, security assessment) updated to match.
1 parent 9fc5bf3 commit 219c87f

5 files changed

Lines changed: 9 additions & 40 deletions

File tree

.github/workflows/security.yml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -86,34 +86,3 @@ jobs:
8686
exit-code: '1'
8787
ignore-unfixed: true
8888
skip-dirs: target
89-
90-
owasp-dependency-check:
91-
name: OWASP Dependency-Check (advisory)
92-
runs-on: ubuntu-latest
93-
# Advisory: the NVD feed can rate-limit without an API key, so this job reports but does not gate.
94-
# Add an NVD_API_KEY repository secret to make it reliable. Trivy (above) is the enforced SCA gate.
95-
continue-on-error: true
96-
steps:
97-
- uses: actions/checkout@v4
98-
- name: Set up JDK 17
99-
uses: actions/setup-java@v4
100-
with:
101-
java-version: '17'
102-
distribution: 'temurin'
103-
cache: maven
104-
- name: Dependency-Check
105-
uses: dependency-check/Dependency-Check_Action@1.1.0
106-
with:
107-
project: point-of-sale
108-
path: '.'
109-
format: 'HTML'
110-
args: >-
111-
--failOnCVSS 7
112-
--nvdApiKey ${{ secrets.NVD_API_KEY }}
113-
- name: Upload report
114-
if: always()
115-
uses: actions/upload-artifact@v4
116-
with:
117-
name: dependency-check-report
118-
path: ${{ github.workspace }}/reports
119-
if-no-files-found: ignore

CHANGELOG.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ layered application.
2121
- Confirmed all bundled seed data is **synthetic** (non-issuable SSNs, fictional `555` phone numbers,
2222
a masked demo card and check account).
2323
- Added an **empirically-verified security pipeline** (`.github/workflows/security.yml`): CodeQL,
24-
Semgrep, Trivy, gitleaks, advisory OWASP Dependency-Check, plus **find-sec-bugs** in the `mvn verify`
25-
gate and **Dependabot**currently a zero-finding pass.
24+
Semgrep, Trivy, and gitleaks, plus **find-sec-bugs** in the `mvn verify` gate and **Dependabot**
25+
currently a zero-finding pass.
2626

2727
### Fixed / correctness
2828
- Corrected **date-based price selection** so promotional prices apply only within their window and

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,9 @@ masked to the last four digits and never written to disk. The bundled data is en
201201
this project is an educational demo that must not handle real cardholder data.
202202

203203
Security is verified empirically, not assumed: a dedicated [security workflow](.github/workflows/security.yml)
204-
runs **CodeQL**, **Semgrep**, **Trivy** + **OWASP Dependency-Check**, and **gitleaks** on every push,
205-
complemented by **find-sec-bugs** in the `mvn verify` build gate (CI) and **Dependabot** watching
206-
dependencies — currently a clean, zero-finding pass. Full details, the threat model, and how to report a
204+
runs **CodeQL**, **Semgrep**, **Trivy**, and **gitleaks** on every push, complemented by
205+
**find-sec-bugs** in the `mvn verify` build gate (CI) and **Dependabot** watching dependencies —
206+
currently a clean, zero-finding pass. Full details, the threat model, and how to report a
207207
vulnerability are in [SECURITY.md](SECURITY.md).
208208

209209
## License

SECURITY.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ on every push and pull request, and weekly on a schedule; they can all be run lo
6868
|-------|------|----------------|
6969
| SAST (Java) | **CodeQL** (`security-extended`) + **find-sec-bugs** (SpotBugs plugin, in `mvn verify`) | injection, crypto misuse, path traversal, unsafe deserialization, weak randomness |
7070
| SAST (rules) | **Semgrep** (`p/java`, `p/security-audit`, `p/secrets`) | OWASP-style code patterns |
71-
| Dependencies (SCA) | **Trivy** (enforced) + **OWASP Dependency-Check** (advisory) | known CVEs in third-party libraries |
71+
| Dependencies (SCA) | **Trivy** (enforced) | known CVEs in third-party libraries |
7272
| Secrets | **gitleaks** | committed credentials/keys |
7373
| Supply chain | **Dependabot** | outdated/vulnerable dependencies and actions |
7474

docs/SECURITY-ASSESSMENT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -127,8 +127,8 @@ scope/ethics grounds.
127127
- **SAST** — Semgrep (124 rules across `p/java`, `p/security-audit`, `p/secrets`): **0 findings**.
128128
SpotBugs + find-sec-bugs (build gate): **0 bugs**. CodeQL `security-extended` (CI): **0 alerts**.
129129
- **SCA** — Trivy over the dependency set (sole runtime dependency: **LGoodDatePicker**; JUnit and
130-
spotbugs-annotations are test/provided): **0 HIGH/CRITICAL CVEs**. OWASP Dependency-Check runs as
131-
an advisory CI job.
130+
spotbugs-annotations are test/provided): **0 HIGH/CRITICAL CVEs**, enforced in CI. Dependabot
131+
watches for new dependency and GitHub Actions updates.
132132
- **Secrets** — gitleaks across the working tree: **0 leaks**. Bundled seed data is synthetic
133133
(non-issuable SSNs, `555` phone numbers, a single *masked* card record).
134134
- **Credential storage** — salted PBKDF2-HMAC-SHA256 @ 600,000 iterations, PHC-encoded, constant-time
@@ -156,4 +156,4 @@ semgrep scan --config p/java --config p/security-audit --config p/secrets src/
156156
```
157157

158158
See [SECURITY.md](../SECURITY.md) for the threat model and the standing CI security pipeline
159-
(CodeQL, Semgrep, Trivy, gitleaks, OWASP Dependency-Check, Dependabot).
159+
(CodeQL, Semgrep, Trivy, gitleaks, Dependabot).

0 commit comments

Comments
 (0)