Repository navigation
chore: add dependency vulnerability scanning to CI - #3
Conversation
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
6a655d8 to
2ee973c
Compare
2ee973c to
5f59497
Compare
|
Agent runner idle completed. Repo: metyatech/qti-xml-core Summary: |
There was a problem hiding this comment.
Pull request overview
This PR aims to improve repository compliance and quality by expanding test coverage, updating documentation metadata, and enhancing CI security checks.
Changes:
- Added new Node test suite for several XML parsing helpers.
- Updated README to include required policy/document links and refreshed development instructions.
- Added Node.js engine requirement (>=20) and extended CI with tests plus an OSV vulnerability scan job.
Reviewed changes
Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
test/parsing.test.js |
Adds tests for XML parsing helpers (new coverage). |
package.json |
Declares Node >=20 engine requirement. |
README.md |
Adds required links and updates development/docs sections. |
.github/workflows/ci.yml |
Runs tests in CI and adds an OSV dependency vulnerability scan job. |
Comments suppressed due to low confidence (1)
.github/workflows/ci.yml:27
- The workflow uses
google/osv-scanner-action@v1without pinning to a commit SHA. To reduce supply-chain risk, consider pinning GitHub Actions to a specific SHA (and updating periodically) rather than a moving tag.
with:
scan-args: ./
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - run: npm ci | ||
| - run: npm run verify | ||
|
|
There was a problem hiding this comment.
CI runs npm run build and then npm test, but npm test already runs npm run build (see package.json scripts). This duplicates the TypeScript compile step and slows CI; drop the explicit build step or remove the build from the test script so it only happens once.
…ence The google/osv-scanner-action@v1.9.2 root action.yml has no runs section and fails at job setup. Switch to the officially recommended reusable workflow approach. Set upload-sarif=false (no GHAS) and fail-on-vuln=false for initial adoption (pre-existing vulnerabilities will be addressed separately).
This PR adds automated dependency vulnerability scanning to the CI workflow using \osv-scanner, as recommended by AGENTS.md security standards.
Changes:
Verification: