konstantin343/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 GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Nov 18, 2024
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: konstantin343/cppcheck-annotation-action@bb1bbaec5725b60904b454d60c20f78d07fd5e92 # v1.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
json-results-fileFile to store results in format described on https://docs.github.com/en/rest/checks/runs#create-a-check-run--parametersnoannotations.json
enableValue for cppcheck argument --enable, comma-separated checks. See https://linux.die.net/man/1/cppchecknoall
log-levelLog level for cppcheck command, possible values: quite, verbose. Other values will be ignoredno""
stdC++ Standard for cppcheck command. See https://linux.die.net/man/1/cppchecknoc++20
platformPlatform for cppcheck command. See https://linux.die.net/man/1/cppchecknounix32
suppressComma-separated suppressions for --suppress parameter. See https://linux.die.net/man/1/cppcheckno""
additional-argsAdditional arguments for cppcheck command. See https://linux.die.net/man/1/cppcheckno""
sourcesPath to folder with source code. See https://linux.die.net/man/1/cppcheckno.
annotation-warningsComma-separated severities of checks of cppcheck that should be warnings in GitHub annotations. See https://linux.die.net/man/1/cppchecknowarning
annotation-noticesComma-separated severities of checks of cppcheck that should be notices in GitHub annotations. See https://linux.die.net/man/1/cppchecknoinformation
annotation-failuresComma-separated severities of checks of cppcheck that should be failures in GitHub annotations. See https://linux.die.net/man/1/cppchecknoerror
annotation-level-defaultDefault level for all annotations that not presented in annotation-warnings, annotation-notices, annotation-failures. Possible values: notice, warning, failurenowarning
action-fail-levelComma-separated severities of annotations that should lead to a failure status when running this action. Possible values: notice, warning, failureno""

no outputs