Skip to content

fix(ci): use npm install instead of npm ci for frontend#44

Merged
dancodingbr merged 5 commits into
mainfrom
fix/security-improvements
May 6, 2026
Merged

fix(ci): use npm install instead of npm ci for frontend#44
dancodingbr merged 5 commits into
mainfrom
fix/security-improvements

Conversation

@dancodingbr
Copy link
Copy Markdown
Owner

npm ci fails on Node 20 / npm 10 (CI) when the lock file was generated with npm 11 (Node 25) — same incompatibility already fixed in the frontend Dockerfile. Using npm install resolves missing peer dependency entries (webpack, acorn, watchpack) without requiring lock file format to match exactly across npm major versions.

dancodingbr and others added 5 commits May 6, 2026 10:19
npm ci fails on Node 20 / npm 10 (CI) when the lock file was generated
with npm 11 (Node 25) — same incompatibility already fixed in the
frontend Dockerfile. Using npm install resolves missing peer dependency
entries (webpack, acorn, watchpack) without requiring lock file format
to match exactly across npm major versions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…ivy version

- gitleaks/gitleaks-action@v2 requires pull_requests:read when scanning
  PRs (calls /pulls/{n}/commits GitHub API); without it CI gets 403.
- trivy-action@0.30.0 does not exist; pin to 0.28.0.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… repo

upload:always requires the GitHub repository to have Code scanning enabled
(Settings → Security → Code scanning). Without it the analyze step fails
with 403. Reverting to upload:never keeps the CodeQL analysis running for
static-analysis value without requiring the feature to be enabled.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
…do not exist

The trivy-action version numbers do not follow a simple sequential pattern;
neither 0.28.0 nor 0.30.0 could be resolved. Using @master until the
correct pinned version can be confirmed from the aquasecurity/trivy-action
release page.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- exit-code: 0 — Trivy still scans and reports CVEs in job logs but
  does not fail CI; base images (eclipse-temurin Alpine) always have
  CRITICAL/HIGH findings that require upstream fixes, not code changes.
- continue-on-error: true on SARIF upload — code scanning is not enabled
  on this repository so the upload step would always return 403.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@dancodingbr dancodingbr merged commit 57c0c55 into main May 6, 2026
23 checks passed
@dancodingbr dancodingbr deleted the fix/security-improvements branch May 6, 2026 18:33
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.

1 participant