Repository navigation
feat: adds new github-env audit - #192
Conversation
|
Thanks @ubiratansoares! I'll give this a more detailed review later today.
Rather than use sharing APIs across audits, I think we can probably turn these into APIs on |
9cf461b to
d53ceb8
Compare
|
I address all the comments, including moving dangerous triggers detection logic to I also added some docs covering the basics based on the discussions we have in the related issue, but I did not go deep there are safe ways to use |
|
@woodruffw we miss an example here, happy to raise a PR there, lmk! |
Please do, thanks! |
| // eventually detecting how $GITHUB_ENV is being used | ||
| // and returning an Option<Confidence> instead | ||
|
|
||
| run_step_body.contains("$GITHUB_ENV") || run_step_body.contains("${GITHUB_ENV}") |
There was a problem hiding this comment.
Just thinking out loud: in terms of improving this, we could probably use a regexp like:
^.+\s*>>?\s*"?\$\{?GITHUB_ENV\}?"?.*$
That'll catch a bunch of common cases, but it's also a mess. So we can defer that for a follow-up.
woodruffw
left a comment
There was a problem hiding this comment.
LGTM, thanks @ubiratansoares!
I'll make a follow-up to track refinements here.
WorkflowAuditand moves toimpl DangerousTriggersinstance methodsSome questions below!