-
Notifications
You must be signed in to change notification settings - Fork 64
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
Add cppcheck github workflow #207
Conversation
03de145
to
225e96b
Compare
I'm dying to see the results, but what token and where do I get it? The job isn't giving me an error message either... |
61556e7
to
5b33844
Compare
As the documentation says, I think you just have to setup permissions to allow actions to use the I made a minor update to fix a small spacing issue and to remove a default comment. I also update the branch with latest origin/master. |
So the token should already be there. Under Settings->Actions->General the Workflow Permissions are set to Read and Write. I'm thinking I should even knock that down to readonly, because my actions don't need to write to the repo. No idea what other permissions I could give. Anyways, the cppcheck action seems to fail, but without an error message I consider it kinda bugged :-P |
Again, I have never used the token, so I'm not sure. But this seems to be a bit more detailed: |
Been working with GHA for a bit, and |
This workflow will require a project token added to GITHUB_TOKEN name in the project settings: https://docs.github.com/en/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-github-codespaces#adding-secrets-for-a-repository This will allow the cppcheck report to be attached to the run of the action. Signed-off-by: Bryan Hundven <[email protected]>
To be honest, I really wanted this to work, but I've seen other people having issues with this specific action, so I'm going to give up for now. I'll see if I can find another action that does the right thing. |
This workflow will require a project token added to GITHUB_TOKEN name in the project settings:
https://docs.github.com/en/codespaces/managing-codespaces-for-your-organization/managing-encrypted-secrets-for-your-repository-and-organization-for-github-codespaces#adding-secrets-for-a-repository
This will allow the cppcheck report to be attached to the run of the action.
Signed-off-by: Bryan Hundven [email protected]