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

added atera scanner #398

Merged
merged 2 commits into from
Apr 21, 2022
Merged

Conversation

ladybug0125
Copy link
Contributor

No description provided.

continue
}
req.Header.Add("Accept", "application/json")
req.Header.Add("X-API-KEY", fmt.Sprintf("%s", resMatch))
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: you don't need to use fmt.Sprintf here. You can just use resMatch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I just pushed the changes.

Copy link
Collaborator

@ahrav ahrav left a comment

Choose a reason for hiding this comment

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

Small nitpicks otherwise lgtm

pkg/detectors/atera/atera_test.go Outdated Show resolved Hide resolved
s: Scanner{},
args: args{
ctx: context.Background(),
data: []byte(fmt.Sprintf("You can find a atera secret %s within", secret)),
Copy link
Collaborator

Choose a reason for hiding this comment

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

nit: same here an vs a

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! I just pushed the changes.

@dustin-decker dustin-decker merged commit 80391bb into trufflesecurity:main Apr 21, 2022
bill-rich pushed a commit that referenced this pull request May 2, 2022
* added atera branch

* modified based on comments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants