-
Notifications
You must be signed in to change notification settings - Fork 96
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
.sobelow-skips not picked up when running in (gitlab) CI. #147
Comments
This is very strange behavior indeed - especially if you've confirmed it's working locally but not in CI! May I ask how you're running Sobelow in your CI environment? Are you using the GitHub Action? Is it installed into the ephemeral environment or the Elixir app your testing? EDIT: Just realized in the issue title you specific a GitLab environment - my question still largely remains the same, just ignore the GitHub Action bit 🙂 Does it have its own GitLab job to run or is it a part of a more general test suite job? |
I'm seeing this same issue too in Github actions. |
The reason this is happening:
Fun fact, I first ran into the binary_to_term compatibility issue when researching RCE exploits, it shows up everywhere in Elixir security! |
Oh that's a fun one. One thought to avoid a breaking change but keep the idea of a fingerprint: calculate new fingerprints using The old way of calculating a fingerprint could be checked against the skip list as well, so existing skip files don't break. The same logic applies to a JSON fingerprint as well. |
That seems to have done the trick indeed @realcorvus . Generated the Thanks a lot for the effort @realcorvus @houllette 🙌 |
Someone also pointed out on the EEF Security Slack channel that we can specify a version for It may require regeneration of previously established skip files still, so maybe that isn't ideal and probably won't hold up long term - but it could be a band-aid solution while we look to make a larger change proposed by @sb8244 in #149. |
Hi there,
We are currently trying to implement sobelow into our CI pipeline.
Followed the steps to create a
.sobelow-skips
file and push this to the repository.But while running:
mix sobelow --skip --exit Low
It's not picking up the
.sobelow-skips
file. It returns all the issues as before adding the skips file.Locally it's working correctly.
Couple of hunches we tried:
.sobelow-skips
file file is available ✅ . => Is found and printed in the CI.-r /path/to
✅ => Didn't fix the issue.Wonder what else we can try to solve this.
Hope you can help us out! 🙌
Cheers!
The text was updated successfully, but these errors were encountered: