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 adhoc scan verify #336

Merged
merged 2 commits into from
Aug 27, 2020
Merged

Conversation

OiCMudkips
Copy link
Contributor

The self.verify call was missing a parameter in the adhoc string scanning function. This PR adds the missing parameter.

Also, I noticed that a parameter name for verify was misnamed. I fixed that in this PR too.

@@ -239,7 +239,7 @@ def adhoc_scan(self, string):

return output[verified_result]

def verify(self, token, content=''):
Copy link
Contributor

Choose a reason for hiding this comment

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

It's actually meant to be context.

A couple of lines down, it reads:

:param context: lines of context around identified secret

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Right, that's why I renamed it to context.

Copy link
Contributor

Choose a reason for hiding this comment

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

🤦 I must be getting cross-eyed.

@OiCMudkips OiCMudkips merged commit 3c87288 into Yelp:master Aug 27, 2020
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.

None yet

2 participants