-
Notifications
You must be signed in to change notification settings - Fork 252
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
coverity.yml: Shell may only be a single command #413
Conversation
I'm still trying to figure out how to actually run this without merging it into master first... |
Maybe just do it in master? |
Yeah it seems like there is no other option |
Let's do it. I'll merge to master |
Done |
Now you can add the coverity secrets to the repo and try to run it. Let's see how it goes |
Can you check this? https://github.com/cycfi/elements/actions/runs/9641033364 ![]() |
It's still missing the environment secret configuration. That's why it can't download and fails. You need to setup a new environment named Coverity with the token and email address you're seeing when you login to coverity (on the tab where you can submit a build). |
I am a total moron with Coverity. Is there a tutorial on how to set this up? |
Not really, it's really simple: Go to the settings of the repository here on GitHub, select "secrets and variables" on the left, then click on "actions". On the right hand side select"Manage environment secrets", click on new environment, name it Coverity. Once it's added you need to add 2 secrets to it, COVERITY_SCAN_EMAIL and COVERITY_SCAN_TOKEN. Both information can be found at https://scan.coverity.com/projects/30354/builds/new (at "Step 1" at the bottom where the submission process for automated builds is). Once that is done you can try to re-run it. |
Now where do we get the results? |
Log in to coverity and you should be able to see it there (and also give others permission to see the results, I've sent a request that you can approve somewhere). |
Approved. |
Thanks, I had a brief look through the results, only a few high-severity issues which will only occur in corner cases (super long paths for example). Some of them I can't really assess (like the "copy of large parameter") and some might be logical mistakes (the "dead code" ones). If you fix them they will disappear from the list after the next scan. There is a limited number of scans per week available,.it depends on the lines of code in the project. I'm not sure about the exact limits, I think even for the largest projects it's 3 runs per week. Just keep tuat in mind and don't run it after every commit or you'll have to wait until the week is over for the next analysis to run :) |
Splendid! Thanks for working in this, @Flole998 super much appreciated! 👍 👍 👍 👍 👍 |
No description provided.