Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: replace "skip-git" with "include-git", making git repository scanning not the default #1311

Draft
wants to merge 1 commit into
base: v2
Choose a base branch
from

Conversation

G-Rath
Copy link
Collaborator

@G-Rath G-Rath commented Oct 8, 2024

BREAKING CHANGE: don't scan git repositories by default, replacing "--skip-git" with "--include-git"

I've gone with renaming the property so it aligns with being false by default, though we could keep the existing property if we really wanted; likewise, I've also changed this for both the API and CLI as I think it makes sense to have them aligned even though we could technically have them different.

Resolves #1277

(also, I think the fact that we use --skip-git in our workflows is another good sign it should be disabled by default 😅)

@G-Rath G-Rath added the V2 Wishlist Enhancements that require a breaking change label Oct 8, 2024
@codecov-commenter
Copy link

codecov-commenter commented Oct 8, 2024

Codecov Report

Attention: Patch coverage is 80.00000% with 1 line in your changes missing coverage. Please review.

Project coverage is 68.43%. Comparing base (e054385) to head (c1409f3).

Files with missing lines Patch % Lines
pkg/osvscanner/osvscanner.go 75.00% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1311   +/-   ##
=======================================
  Coverage   68.43%   68.43%           
=======================================
  Files         183      183           
  Lines       17606    17606           
=======================================
  Hits        12049    12049           
  Misses       4895     4895           
  Partials      662      662           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@G-Rath G-Rath added the enhancement New feature or request label Oct 8, 2024
@another-rex
Copy link
Collaborator

Can you update the target to the v2 branch?

@G-Rath G-Rath changed the base branch from main to v2 October 24, 2024 04:23
…anning not the default

BREAKING CHANGE: don't scan git repositories by default, replacing "--skip-git" with "--include-git"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request V2 Wishlist Enhancements that require a breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Consider making "skip git" the default in v2
3 participants