Skip to content

ci: add weekly Dependabot, OSV-Scanner, and CodeQL scanning - #489

Merged
yohei1126 merged 3 commits into
mainfrom
cursor/weekly-security-scanning-b36e
Oct 22, 2026
Merged

yohei1126 merged 3 commits into
mainfrom
cursor/weekly-security-scanning-b36e

Conversation

@yohei1126

@yohei1126 yohei1126 commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Adds weekly security scanning via Dependabot (Wednesday minor/patch groups) and Google OSV-Scanner (SARIF → code scanning). Does not merge; leaves Cargo.lock and existing CI jobs untouched.

CodeQL is not configured as an advanced workflow here — the repo already uses GitHub CodeQL default setup, which conflicts with an advanced CodeQL workflow ("CodeQL analyses from advanced configurations cannot be processed when the default setup is enabled"). We rely on default setup instead.

Changes

  • Dependabot (.github/dependabot.yml extended, not replaced):
    • cargo at workspace root / (covers all member manifests via the single workspace Cargo.lock)
    • github-actions at /
    • interval: weekly, day: wednesday
    • Groups minor + patch updates
    • open-pull-requests-limit: 10 (cargo), 5 (actions)
  • OSV-Scanner (.github/workflows/osv-scanner.yml):
    • Reuses google/osv-scanner-action osv-scanner-reusable.yml (schedule / workflow_dispatch) and osv-scanner-reusable-pr.yml (PRs), pinned to v2.7.0 (b1d267a…)
    • Triggers: schedule 0 0 * * 3 (Wed 00:00 UTC = 08:00 SGT), pull_request, workflow_dispatch
    • Uploads SARIF to code scanning; permissions: contents: read, actions: read, security-events: write
  • CodeQL: handled by GitHub default setup (settings) — no advanced .github/workflows/codeql.yml in this PR

Notes

  • OSV-Scanner vs cargo-audit: OSV-Scanner is the intended path for vulnerability scanning into code scanning (weekly Wed 08:00 SGT, plus on PRs). The existing CI cargo-audit job is left in place: it additionally flags unmaintained / yanked crates, which OSV does not. cargo deny advisories / bans remain in CI; broader cargo deny policy coverage could be expanded later if desired.
  • GitHub Advanced Security / visibility: OSV-Scanner SARIF upload to code scanning requires the repository to be public, or to have GitHub Advanced Security enabled on a private repo. Without that, SARIF upload may fail even when the scan itself succeeds.
  • Concurrency: Another agent may be bumping vulnerable crates in a separate PR; this PR does not touch Cargo.lock.
  • Validation: actionlint reported 0 errors on the OSV-Scanner workflow; Dependabot / workflow YAML also parsed cleanly with PyYAML.

Checklist

  • Existing CI jobs left untouched (no duplicate removal of cargo-audit)
  • Cargo.lock unchanged
  • Advanced CodeQL workflow omitted (default setup already enabled)
  • Workflows validated with actionlint
  • Do not merge until review
Open in Web Open in Cursor 

Extend Dependabot to weekly Wednesday minor/patch groups for cargo and
github-actions. Add Google OSV-Scanner reusable workflows (scheduled +
PR) and CodeQL for rust, actions, and python with build-mode none.

Co-authored-by: Yohei Onishi <yohei1126@users.noreply.github.com>
@yohei1126
yohei1126 marked this pull request as ready for review October 22, 2026 00:24
@github-actions

github-actions Bot commented Oct 22, 2026 •

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

OpenSSF Scorecard

PackageVersionScoreDetails
actions/google/osv-scanner-action/.github/workflows/osv-scanner-reusable-pr.yml b1d267aea5211fa648d9d442fa64b90dbdcbdd36 UnknownUnknown
actions/google/osv-scanner-action/.github/workflows/osv-scanner-reusable.yml b1d267aea5211fa648d9d442fa64b90dbdcbdd36 UnknownUnknown

Scanned Files

  • .github/workflows/osv-scanner.yml

cursoragent and others added 2 commits October 22, 2026 00:39
GitHub CodeQL default setup is already enabled; an advanced workflow
conflicts ("analyses from advanced configurations cannot be processed
when the default setup is enabled"). Dependabot and OSV-Scanner remain.

Co-authored-by: Yohei Onishi <yohei1126@users.noreply.github.com>
Bring in vulnerable crate bumps from #490 so cargo-audit/deny can pass.

Co-authored-by: Yohei Onishi <yohei1126@users.noreply.github.com>
@yohei1126
yohei1126 merged commit f12baa2 into main Oct 22, 2026
11 checks passed
@yohei1126
yohei1126 deleted the cursor/weekly-security-scanning-b36e branch October 22, 2026 01:06
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