Skip to content
This repository was archived by the owner on Oct 22, 2026. It is now read-only.

ci: weekly Dependabot, OSV-Scanner, and CodeQL security scanning - #191

Merged
yohei1126 merged 1 commit into
mainfrom
cursor/weekly-security-scanning-5c40
Oct 22, 2026
Merged

yohei1126 merged 1 commit into
mainfrom
cursor/weekly-security-scanning-5c40

Conversation

@yohei1126

Copy link
Copy Markdown
Contributor

Summary

Adds weekly supply-chain and SAST scanning without changing application code or Cargo.lock (a concurrent PR handles vulnerable crate bumps).

1. Dependabot (.github/dependabot.yml) — extended, not replaced

  • Kept existing npm entries for /analytics and /ui (including the dompurify ignore).
  • cargo: /edge and /ui/src-tauri (all workspace manifest dirs in this repo).
  • github-actions: /.
  • Schedule: weekly on Wednesday.
  • Groups: minor + patch updates per ecosystem/directory; majors stay individual.
  • open-pull-requests-limit: 10 (npm), 5 (cargo / github-actions).

2. OSV-Scanner (.github/workflows/osv-scanner.yml)

  • Reuses Google’s official workflows, pinned to commit b1d267a (v2.7.0):
    • osv-scanner-reusable.yml — schedule + workflow_dispatch
    • osv-scanner-reusable-pr.yml — pull_request
  • Cron: 0 0 * * 3 (Wed 00:00 UTC = 08:00 SGT).
  • Uploads SARIF to code scanning (upload-sarif default on the reusable workflows).
  • Permissions: contents: read, security-events: write, actions: read.

3. CodeQL (.github/workflows/codeql.yml)

  • Languages: rust, actions, javascript-typescript, python (languages actually present).
  • build-mode: none for all matrix entries (supported for Rust; appropriate for the others).
  • Triggers: push to main, pull_request, weekly 0 1 * * 3, workflow_dispatch.
  • Actions pinned by commit SHA (actions/checkout, github/codeql-action v4.39.1).
  • Minimal job permissions: contents: read, actions: read, security-events: write.

4. cargo-audit

No existing cargo-audit / rustsec job was found in .github/workflows. Existing CI jobs were left untouched.

Note: OSV-Scanner supersedes cargo-audit for vulnerability scanning. cargo-audit additionally flags unmaintained/yanked crates; cargo deny could be added later if that coverage is desired.

Requirements / caveats

  • CodeQL and SARIF upload to code scanning require the repository to be public or to have GitHub Advanced Security enabled. Without that, workflows may fail on the upload step even if the scan itself succeeds.
  • Validated with actionlint v1.7.12 (0 errors) and yaml.safe_load on all three files.
  • Cargo.lock intentionally unchanged.
Open in Web Open in Cursor 

Extend Dependabot for cargo workspace manifests and github-actions on
Wednesdays with minor/patch grouping. Add Google OSV-Scanner reusable
workflows (scheduled + PR) and CodeQL for rust, actions, JS/TS, and
Python. Does not touch Cargo.lock.

Co-authored-by: Yohei Onishi <yohei1126@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

Dependency Review Summary

The full dependency review summary was too large to display here (2753KB, limit is 1024KB).

Please download the artifact named "dependency-review-summary" to view the complete report.

View full job summary

@yohei1126
yohei1126 marked this pull request as ready for review October 22, 2026 00:24
@yohei1126
yohei1126 merged commit e2c5c10 into main Oct 22, 2026
10 of 14 checks passed
@yohei1126
yohei1126 deleted the cursor/weekly-security-scanning-5c40 branch October 22, 2026 00:25
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants