Skip to content

ci: add GitHub Actions pipeline with lint, typecheck, build, audit, SBOM - #4

Open
isaJrKai wants to merge 1 commit into
mainfrom
fix/ci-pipeline
Open

ci: add GitHub Actions pipeline with lint, typecheck, build, audit, SBOM#4
isaJrKai wants to merge 1 commit into
mainfrom
fix/ci-pipeline

Conversation

@isaJrKai

Copy link
Copy Markdown
Owner

What this adds

A GitHub Actions CI pipeline that runs on every PR to main and every push to main. Three parallel jobs:

Job 1: quality (lint + typecheck + build)

  • npm ci — reproducible install from lockfile
  • npx prisma generate — generate Prisma client
  • npx tsc --noEmit — TypeScript type checking
  • npm run lint — ESLint
  • npm run build — Next.js production build (with placeholder env vars)

Job 2: security-audit

  • npm audit --audit-level=high --omit=dev — fails on high/critical CVEs
  • Prevents merging PRs that introduce known vulnerable dependencies

Job 3: generate-sbom

  • Generates a CycloneDX SBOM (sbom.cdx.json)
  • Uploads as a GitHub artifact (30-day retention)
  • Satisfies the SBOM requirement from the acquisition audit

Also adds

  • npm run sbom script in package.json for local SBOM generation

Files changed

  • .github/workflows/ci.yml (new) — 3-job CI pipeline
  • package.json — added sbom script

Vercel env vars

None needed. The CI pipeline uses placeholder env vars for the build step.

Deployment risk

Zero. This only adds CI checks — it doesn't change the deployed app at all. If a CI check fails on an existing PR, that's a signal the PR needs fixing before merge.

Notes

  • The quality job uses placeholder env vars (DATABASE_URL=postgresql://placeholder..., JWT_SECRET=ci-placeholder-...) so next build can complete without a real database. The build validates compilation, not DB connectivity.
  • The security-audit job uses --omit=dev to only check production dependencies. Dev dependencies (eslint, etc.) are not deployed.
  • The SBOM is generated with @cyclonedx/cyclonedx-npm, the standard tool for npm SBOM generation.

Adds .github/workflows/ci.yml with 3 parallel jobs:

1. quality — npm ci, prisma generate, tsc --noEmit, eslint, next build
2. security-audit — npm audit, fails on high/critical CVEs
3. generate-sbom — generates CycloneDX SBOM, uploads as artifact (30-day retention)

Also adds npm run sbom script to package.json for local SBOM generation.

All jobs run on PRs to main and on pushes to main. Build uses placeholder
env vars (DATABASE_URL, JWT_SECRET) so next build can complete without a
real database — the build step validates that the app compiles, not that
it can connect to a DB.
@coderabbitai

coderabbitai Bot commented Jun 25, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@isaJrKai, we couldn't start this review because you've reached your PR review rate limit.

More reviews will be available in 28 minutes and 3 seconds. Learn how PR review limits work.

Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file).

⌛ How to resolve this issue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based credits.

🚦 How do rate limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please see our Fair Usage Limits Policy for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: fd429632-f056-4531-8fe3-5d52b8fd2874

📥 Commits

Reviewing files that changed from the base of the PR and between 7053878 and 86d1144.

📒 Files selected for processing (2)
  • .github/workflows/ci.yml
  • package.json
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ci-pipeline

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

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