Repository navigation
feat(versioniq): build advisories-ncsc-feed - #797
Merged
Merged
Conversation
Serve an NCSC-NL CSAF directory from the fixture forge (changes.csv and two Nextcloud Server documents, one affected, one vers:unknown/*, switchable through /control/csaf) and add the NCSC-NL e2e block to advisories.spec.ts: switched on, one sweep shows the affected advisory and the version-not-stated advisory in the server block; switched off, nothing is read. Assisted-by: ClaudeCode:claude-opus-5-5
Resolve the e2e conflicts with the advisory triage suite: the spec keeps development's triage block and adds the NCSC-NL block after it, importing both fixture resets; the forge fixture routes both the CSAF directory and the OSV API. Assisted-by: ClaudeCode:claude-opus-5-5
Contributor
Quality Report — ConductionNL/versioniq @
|
| Check | PHP | Vue | Security | License | Tests |
|---|---|---|---|---|---|
| lint | ✅ | ||||
| phpcs | ✅ | ||||
| phpmd | ✅ | ||||
| psalm | ❌ | ||||
| phpstan | ✅ | ||||
| phpmetrics | ✅ | ||||
| eslint | ❌ | ||||
| stylelint | ❌ | ||||
| build | ✅ | ||||
| composer | ✅ | ✅ 58/58 | |||
| npm | ✅ | ✅ 314/314 | |||
| app:check-code | ⏭️ | ||||
| info.xml | ✅ | ||||
| REUSE | ❌ | ||||
| lockfile sync | ✅ | ||||
| PHPUnit | ❌ | ||||
| Newman | ⏭️ | ||||
| Playwright | ⏭️ deferred: E2E runs locally and on the promotion path only. This pull request targets development, so the suite is asked once per promotion into beta and main rather than once per push per open pull request. Run it locally with npx playwright test, or from the Actions tab on a branch with no open pull request into development. |
||||
| Hydra gates | ❌ |
Quality workflow — 2026-11-20 10:27 UTC
Download the full PDF report from the workflow artifacts.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Round 2 of
advisories-ncsc-feed: the e2e spec task 3.5 had no spec yet. Every code task (1.1–3.4) is already on development, including the NCSC-NL switch in the Advisories settings.Done
tests/e2e/fixtures/forge/server.mjs) serves a CSAF directory at/csaf/v2/: achanges.csv(newest first, times relative to now so the 365-day first read includes them) and two Nextcloud Server documents:NCSC-2099-0001with a range covering any CI server version, andNCSC-2099-0002withvers:unknown/*.POST /control/csafreplaces the documents or forces a status;/control/resetrestores them.tests/e2e/advisories.spec.ts, block "NCSC-NL advisories": pointsadvisory.ncsc_feed_baseat the fixture (through occ, using the bootstrap's forgejo web base, so it works in Docker and on the CI runner), clears the cursor and index, switches NCSC-NL on throughPUT /api/advisory/settings, runsAdvisoryRefreshJob, and asserts the affected advisory (NCSC-NL label, severity high, CVE, ratings) and the "does not state which versions" advisory in the server block. A second test asserts nothing is read with the switch off.afterEachswitches it off, removes the base and state, and sweeps again.Left
Tests
playwright test --listlists the two new tests.Generated by Claude Code