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

Switch to Pygit2 #233

Merged
merged 9 commits into from
Oct 26, 2021
Merged

Switch to Pygit2 #233

merged 9 commits into from
Oct 26, 2021

Conversation

sushantmimani
Copy link
Contributor

To help us get this pull request reviewed and merged quickly, please be sure to include the following items:

  • Tests (if applicable)
  • Documentation (if applicable)
  • Changelog entry
  • A full explanation here in the PR description of the work done

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Documentation content changes
  • Tests
  • Other

Backward Compatibility

Is this change backward compatible with the most recently released version? Does it introduce changes which might change the user experience in any way? Does it alter the API in any way?

  • Yes (backward compatible)
  • No (breaking changes)
    In its current version, this PR will flag findings for renamed files even if the findings in the new file(after rename) have been excluded from Tartufo.

What's new?

This is the first PR in a series of PRs aimed at re-implementing #122. Current status:

  • scan-remote-repo runs successfully
  • scan-local-repo runs successfully
  • pre-commit runs successfully
  • All unit tests pass
  • --max-depth option is unimplemented
  • file renames are not tracked so extra findings ( which might have exclusions for the new file path) are generated

Copy link
Contributor

@rbailey-godaddy rbailey-godaddy left a comment

Choose a reason for hiding this comment

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

Looking pretty good, although I bet it was a lot harder to come up with the changes than it was to read them. I noted one point where a message was dropped in the transformation -- I'm guessing that is unintentional because the look-and-feel appears unchanged everywhere else.

tartufo/scanner.py Show resolved Hide resolved
@sushantmimani sushantmimani changed the base branch from main to v3.0.0-dev October 20, 2021 19:29
@sushantmimani sushantmimani changed the base branch from v3.0.0-dev to main October 20, 2021 19:37
@sushantmimani sushantmimani changed the base branch from main to v3.x October 21, 2021 00:01
@sushantmimani sushantmimani marked this pull request as ready for review October 25, 2021 22:33
@sushantmimani sushantmimani requested a review from a team as a code owner October 25, 2021 22:33
@sushantmimani sushantmimani requested review from djlarsu, jmink-godaddy, sjacoby-godaddy and tarkatronic and removed request for a team October 25, 2021 22:33
Copy link
Contributor

@emayuri-godaddy emayuri-godaddy left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@rbailey-godaddy rbailey-godaddy left a comment

Choose a reason for hiding this comment

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

LGTM. I didn't see anything weird at this point, and I trust the unit tests more than my deductive abilities in this area. ;-)

Copy link
Contributor

@tarkatronic tarkatronic left a comment

Choose a reason for hiding this comment

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

Just one small thing here and I think we're good for an MVP on this change.

tartufo/scanner.py Outdated Show resolved Hide resolved
@tarkatronic tarkatronic mentioned this pull request Oct 26, 2021
Copy link
Contributor

@tarkatronic tarkatronic left a comment

Choose a reason for hiding this comment

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

This will be a great starting point for a fast new tartufo! Thanks for all the work @jgowdy, @sushantmimani, and @emayuri-godaddy!

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.

5 participants