actions-marketplace-validations/cppcheck-annotation-action
Github action, which allows you to annotate C/C++ code in a pull request with warnings from cppcheck static analysis tool
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stalelast commit Nov 18, 2024
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/konstantin343_cppcheck-annotation-action@d96b32637f65d06e83fb619a6aff92b87bce6f32 # no releases — HEAD as of 2026-07-10tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| json-results-file | File to store results in format described on https://docs.github.com/en/rest/checks/runs#create-a-check-run--parameters | no | annotations.json |
| enable | Value for cppcheck argument --enable, comma-separated checks. See https://linux.die.net/man/1/cppcheck | no | all |
| log-level | Log level for cppcheck command, possible values: quite, verbose. Other values will be ignored | no | "" |
| std | C++ Standard for cppcheck command. See https://linux.die.net/man/1/cppcheck | no | c++20 |
| platform | Platform for cppcheck command. See https://linux.die.net/man/1/cppcheck | no | unix32 |
| suppress | Comma-separated suppressions for --suppress parameter. See https://linux.die.net/man/1/cppcheck | no | "" |
| additional-args | Additional arguments for cppcheck command. See https://linux.die.net/man/1/cppcheck | no | "" |
| sources | Path to folder with source code. See https://linux.die.net/man/1/cppcheck | no | . |
| annotation-warnings | Comma-separated severities of checks of cppcheck that should be warnings in GitHub annotations. See https://linux.die.net/man/1/cppcheck | no | warning |
| annotation-notices | Comma-separated severities of checks of cppcheck that should be notices in GitHub annotations. See https://linux.die.net/man/1/cppcheck | no | information |
| annotation-failures | Comma-separated severities of checks of cppcheck that should be failures in GitHub annotations. See https://linux.die.net/man/1/cppcheck | no | error |
| annotation-level-default | Default level for all annotations that not presented in annotation-warnings, annotation-notices, annotation-failures. Possible values: notice, warning, failure | no | warning |
| action-fail-level | Comma-separated severities of annotations that should lead to a failure status when running this action. Possible values: notice, warning, failure | no | "" |
Outputs
no outputs