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

Evaluate the use of Sarif instead of Reviewdog #65

Open
thypon opened this issue Jan 27, 2023 · 4 comments
Open

Evaluate the use of Sarif instead of Reviewdog #65

thypon opened this issue Jan 27, 2023 · 4 comments
Assignees
Labels
enhancement New feature or request

Comments

@thypon
Copy link
Member

thypon commented Jan 27, 2023

Pro

  • It's supported by GitHub natively
  • Fancy new thingy

Cons

  • We need to port the checks we have

  • We need to rewrite the missing checks (xmllint one, maybe)

  • We need to rewrite and get the other scripts working:

    • tfsec with multi-dir support, and proper diffing
    • xmllint that does not support any output if not text
    • blocklist for semgrep findings and custom rulesets

Open Qs

  • Rather limited console support, so slow iteration (maybe?)
  • How do we test that the serif output is fine? Is there any validator?
@thypon
Copy link
Member Author

thypon commented Jan 28, 2023

Another Q. Can we control how we output the findings? I'm good with the comments flow and find the less discursive approach a bit lacking.

@thypon
Copy link
Member Author

thypon commented Jan 28, 2023

@thypon
Copy link
Member Author

thypon commented Jan 28, 2023

Reviewdog incident: 4ff345c <-- fixed

@thypon
Copy link
Member Author

thypon commented Jan 28, 2023

A major point is that besides the output format we should however use find/xargs to limit the scope of the tools. In-fact most of the tools don't support files level scanning, but sub-directories only (like tfsec). For this reason we should hack support for differential scanning.

Differential scanning reduces the cost on the github action runtime and for some repo allows to work properly. In-fact tfsec, while awesome, does not even do recursive scanning for the main .tf file which is delegated to the user, or a script.

@thypon thypon added the enhancement New feature or request label Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants