Skip to content

fix(deps): resolve dependency vulnerabilities - #27

Merged
luojiyin1987 merged 2 commits into
mainfrom
agent/secure-dependency-upgrades
Aug 8, 2026
Merged

fix(deps): resolve dependency vulnerabilities#27
luojiyin1987 merged 2 commits into
mainfrom
agent/secure-dependency-upgrades

Conversation

@luojiyin1987

@luojiyin1987 luojiyin1987 commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

What changed

  • Upgrade @actions/core from 1.11.1 to 3.0.1.
  • Remove the unused @actions/github dependency.
  • Update lint and test dependencies.
  • Rebuild dist/index.js with the secure dependency tree.
  • Add OWASP CVE Lite CLI scanning to CI.
  • Add a bundled Action smoke test to CI.

Why

The bundle included vulnerable undici through @actions/core 1.11.1.
The test dependency tree included vulnerable brace-expansion and js-yaml versions.

User impact

The published Node 24 bundle now uses patched runtime dependencies.
CI blocks medium or higher CVE Lite findings.
CI also executes the real bundled Action.

Checks

  • CVE Lite CLI scanned 433 locked packages with no OSV matches.
  • npm ci
  • npm test -- --runInBand
  • npm run typecheck
  • npm run lint
  • npm run build
  • npm pack --dry-run
  • Node 24 warning smoke test
  • Deterministic bundle SHA-256 check
  • git diff --check

Closes #26

Upgrade the bundled Actions runtime dependencies.
Add CVE Lite scanning and a bundle smoke test to CI.

Refs #26
@luojiyin1987
luojiyin1987 marked this pull request as ready for review August 8, 2026 09:37
Limit workflow permissions and remove persisted checkout credentials.
Pin the CVE Lite Action and CLI to version 1.28.0.

Refs #26
@luojiyin1987
luojiyin1987 merged commit 23af402 into main Aug 8, 2026
3 checks passed
@luojiyin1987
luojiyin1987 deleted the agent/secure-dependency-upgrades branch August 8, 2026 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Upgrade dependencies and add CVE Lite security gate

1 participant