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

coverity.yml: Shell may only be a single command #413

Merged
merged 1 commit into from
Jun 22, 2024

Conversation

Flole998
Copy link
Contributor

No description provided.

@Flole998
Copy link
Contributor Author

I'm still trying to figure out how to actually run this without merging it into master first...

@djowel djowel merged commit 2f334bf into cycfi:skia_2024 Jun 22, 2024
4 checks passed
@djowel
Copy link
Member

djowel commented Jun 22, 2024

Maybe just do it in master?

@Flole998
Copy link
Contributor Author

Yeah it seems like there is no other option

@djowel
Copy link
Member

djowel commented Jun 23, 2024

Let's do it. I'll merge to master

@djowel
Copy link
Member

djowel commented Jun 23, 2024

Let's do it. I'll merge to master

Done

@Flole998
Copy link
Contributor Author

Now you can add the coverity secrets to the repo and try to run it. Let's see how it goes

@djowel
Copy link
Member

djowel commented Jun 24, 2024

@Flole998
Copy link
Contributor Author

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).

@djowel
Copy link
Member

djowel commented Jun 24, 2024

I am a total moron with Coverity. Is there a tutorial on how to set this up?

@Flole998
Copy link
Contributor Author

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.

@djowel
Copy link
Member

djowel commented Jun 27, 2024

@djowel
Copy link
Member

djowel commented Jun 27, 2024

Now where do we get the results?

@Flole998
Copy link
Contributor Author

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).

@djowel
Copy link
Member

djowel commented Jun 28, 2024

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.

@Flole998
Copy link
Contributor Author

Flole998 commented Jun 28, 2024

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 :)

@djowel
Copy link
Member

djowel commented Jun 28, 2024

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! 👍 👍 👍 👍 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants