8000 Use filepath.WalkDir() to scan for signatures by mccormickt · Pull Request #901 · aquasecurity/tracee · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Use filepath.WalkDir() to scan for signatures #901

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

Merged
merged 2 commits into from
Sep 2, 2021
Merged

Use filepath.WalkDir() to scan for signatures #901

merged 2 commits into from
Sep 2, 2021

Conversation

mccormickt
Copy link
Contributor

👋 This PR should address #501 . Only concern I have is that I'm not sure how to test findGoSigs(), as go signatures were also left out of Test_getSignatures(). Happy to add that coverage with some guidance!

  • Refactor findRegoSigs() and findGoSigs() to utilize filepath.WalkDir() to recursively scan for signatures
  • Add tests for findRegoSigs()

@itaysk
Copy link
Collaborator
itaysk commented Aug 12, 2021

Thanks @jan0ski please see #893 and rebase to include those changes.

@itaysk
Copy link
Collaborator
itaysk commented Aug 16, 2021

@jan0ski sorry but you'll need to rebase again after #903

@josedonizetti
Copy link
Contributor

@jan0ski I think @itaysk meant #906, sorry about the rework.

@mccormickt
Copy link
Contributor Author

Should be all up to date now. Let me know if anything's missing.

Copy link
Contributor
@grantseltzer grantseltzer left a comment

Choose a reason for hiding this comment

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

@jan0ski Sorry about the delay in reviewing, this LGTM! Thank you very much!

@grantseltzer grantseltzer merged commit b55da80 into aquasecurity:main Sep 2, 2021
@mccormickt mccormickt deleted the rules-filepath-walk branch September 3, 2021 19:51
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.

37F3 4 participants
0