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

fix(secret): fix the example of commit range given in commit-range cmd #1028

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elacaille18
Copy link
Contributor

Context

One of our user rightfully reported that the example of commit range given in the secret scan commit-range command was invalid.
This PR corrects it

What has been done

Just corrected the example. It will also automatically update our documentation https://docs.gitguardian.com/ggshield-docs/reference/secret/scan/commit-range

PR check list

  • As much as possible, the changes include tests (unit and/or functional)
  • If the changes affect the end user (new feature, behavior change, bug fix) then the PR has a changelog entry (see doc/dev/getting-started.md). If the changes do not affect the end user, then the skip-changelog label has been added to the PR.

@elacaille18 elacaille18 self-assigned this Dec 4, 2024
@elacaille18 elacaille18 requested a review from a team as a code owner December 4, 2024 10:09
Copy link

codecov bot commented Dec 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 92.03%. Comparing base (ee56436) to head (51bed3c).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1028   +/-   ##
=======================================
  Coverage   92.03%   92.03%           
=======================================
  Files         181      181           
  Lines        7708     7708           
=======================================
  Hits         7094     7094           
  Misses        614      614           
Flag Coverage Δ
unittests 92.03% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

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

@@ -32,7 +32,7 @@ def range_cmd(

Any git compatible commit range can be provided as an input.

Example: `ggshield secret scan commit-range HEAD~1...`
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a valid git range:

$ ggshield secret scan commit-range HEAD~1... -v
Commits to scan: 1
Scanned changelog.d/20241129_155452_samuel.guillaume_spi_526_implement_deletion_commit_identification_in_ggshield.md
Scanned ggshield/verticals/secret/secret_scan_collection.py
Scanned ggshield/verticals/secret/secret_scanner.py
Scanned b34d26479d3fd44fb07d53ddd11ae9bf8957524c
Scanning... ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ 100% 1 / 1

secrets-engine-version: 2.127.0

No secrets have been found

See git-rev-list doc for more details.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants