Skip to content

ci: security CI (OSV, pnpm audit, CodeQL), Actions pinned by SHA, drafts skip heavy jobs, advisory fixes - #37

Open
techgopal wants to merge 1 commit into
mainfrom
web-s2/setu-security-ci
Open

techgopal wants to merge 1 commit into
mainfrom
web-s2/setu-security-ci

Conversation

@techgopal

Copy link
Copy Markdown
Contributor

Setu security CI row (queue-sonnet-p3next, assigned by web-o1).

  • osv-scanner job (v2.7.1, checksum-verified) over Cargo.lock and ui/pnpm-lock.yaml via scripts/check-osv.sh: fails on High/Critical (CVSS >= 7); exceptions in osv-scanner.toml with reason and expiry.
  • ui-audit job: pnpm audit --audit-level high. cargo-deny already ran.
  • codeql.yml: javascript-typescript and actions, security-extended; weekly and on PRs.
  • Every Action pinned by full SHA (ci, e2e, release); persist-credentials false; read-only permissions; release no longer uses caches (zizmor clean at medium+).
  • Drafts: a draft job fails at once on a draft, heavy jobs skip (engine pattern); concurrency cancels superseded PR runs.
  • Fixes: undici 8.12.2, zod 4.6.6, seroval 1.6.11, minimatch 11 (override, dev tooling), rustix 1.1.6. Exceptions: chrono RUSTSEC-2026-0543 and libsqlite3-sys RUSTSEC-2026-0459 (not compiled), both expire 2027-02-28.
  • SECURITY.md gains what CI checks; CHANGELOG entry.

Checked locally: pnpm audit clean, UI lint/typecheck/101 tests pass, cargo deny ok, check-osv.sh passes. cargo check --locked not finished locally (machine load); CI verifies the rustix bump. Opens as draft: CI heavy jobs skip until ready.

…ip heavy jobs; fix undici, zod, seroval, minimatch, rustix advisories

Signed-off-by: gopal tathe <44522021+techgopal@users.noreply.github.com>
@techgopal
techgopal marked this pull request as ready for review November 29, 2026 16:08
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

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.

2 participants