-
-
Notifications
You must be signed in to change notification settings - Fork 37
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
[BUG]: How to address "opt-in for caching here"? #378
Comments
Thanks for the report @Ashish! To make sure I understand: is the false positive happening because If that sounds right to you, I think what we need to do here is better filter the publish actions in a manner similar to the cache-aware actions. CC @ubiratansoares for thoughts 🙂 |
Yes, I am not an expert on caching but I do believe that |
@ashishb Thanks for reporting! I agree with @woodruffw, this looks like a false positive, and to proper handle it, we need to enhance what we have for publisher-like Actions (like For now, I think the easiest way to disable this check is using zizmor's support to ignoring results. |
I ran into a very similar error- I think is a false positive for the same reason. The underlying problem appears to be not taking context into account for the cache poisoning. In my example I have configured the build-push-action to use the unique github action run ID to benefit from using the cache. However this means it should not be vulnerable to cache poisoning across different runs/branches error:
Reproduction steps
|
Ah yeah, that's a challenging case: we likely won't ever have the fidelity needed to fully inspect that kind of cache key configuration. But I'll think some more about that as well 🙂 |
And I believe that's ok. The goal isn't to handle all edge cases but to reduce obvious false positives. |
Yep. One possibility there is that we can encode personas with each selector, so we'll only flag on that more complicated case when the user selects an "auditor" persona. I'll have time to work on this (first the simple cases, then the more nuanced ones) in the coming days. |
Thought about this a bit more: I think the solution here is going to be to generalize |
#389 is the final piece here. I'll open up a separate follow-up for #378 (comment), since that requires a yet-higher layer of generality. |
Pre-submission checks
Expected behavior
When Docker images are built (but not pushed), cached artifacts are harmless.
How do I disable https://woodruffw.github.io/zizmor/audits/#cache-poisoning for those cases?
Actual behavior
Reproduction steps
Create a new action
Logs
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: