Skip to content

Add opt-in advisory database updates to BundleAudit - #934

Merged
sds merged 1 commit into
mainfrom
fix/bundle-audit-update-812
Nov 10, 2026
Merged

sds merged 1 commit into
mainfrom
fix/bundle-audit-update-812

Conversation

@sds

@sds sds commented Nov 10, 2026 •

Copy link
Copy Markdown
Owner

Adds PreCommit.BundleAudit.update, defaulting to false. Setting it to true appends --update to the configured audit command so ruby-advisory-db is refreshed before checking for vulnerabilities. Ignored lockfiles still skip the audit.

Documents the option in the hook, default configuration, and changelog. Tests cover the default, enabled pass/warn results, custom commands and flags, and ignored lockfiles.

Validation: all 2,095 local examples pass with 100% line coverage; focused hook/default configuration specs (498 examples) and RuboCop pass. CI covers Ruby 3.3, 3.4, and 4.0 on Linux and Windows.

Closes #812.

@sds
sds merged commit 313d0c8 into main Nov 10, 2026
20 checks passed
@sds
sds deleted the fix/bundle-audit-update-812 branch November 10, 2026 20:11
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.

bundle-audit: consider always updating ruby-advisory-db when running the check

1 participant