actions-marketplace-validations/Microsoft C++ Code Analysis Action

Run Microsoft C++ Code Analysis to produce SARIF files for use in github/codeql-action/upload-sarif@v1

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stalelast commit Mar 22, 2023
License
MIT
Runtime
Deprecated runtime

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-marketplace-validations/microsoft_msvc-code-analysis-action@96315324a485db21449515180214ecb78c16a1c5 # no releases — HEAD as of 2026-07-12

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

namedescriptionrequireddefault
cmakeBuildDirectoryThe CMake build directory that should already be generated.yes
buildConfigurationThe build Configuration (Release, Debug, etc.) to use. This is required if using a multi-configuration CMake generator.no
rulesetRuleset file used to determine what checks are run.NativeRecommendedRules.ruleset
ignoredPathsIdentical to setting "ignoredTargetPaths" and "ignoreSystemHeaders" for the given path. This is recommended over either option seperately.
ignoredTargetPathsAny CMake targets defined inside these paths will be excluded from analysis. This is useful for excluding tests or locally built dependencies. List is ";" seperated, requires complete directory paths and can be absolute or relative to "github.workspace"no
ignoredIncludePathsAny includes contained inside these path will be excluded from analysis. This will only filter existing paths add not add any additional includes to the compiler. This is useful for excluding target includes or other custom includes added to CMake. List is ";" seperated, requires complete directory paths and can be absolute or relative to "github.workspace"no
ignoreSystemHeadersUses /external arguments to ignore warnings from any headers marked as SYSTEM in CMake.true
resultsPathOptional path to generate the SARIF file to. If not supplied "results.sarif" will be created in the CMake build directory. Path can be absolute or relative to "github.workspace".no
loadImplicitCompilerEnvLoad implicit includes/libs for the given MSVC toolset using Visual Studio Command Prompt. Set to false if already loaded or a custom include path is needed.true
additionalArgsOptional parameters to pass to every instance of the compiler.no
namedescription
sarifThe path to the SARIF file that is generated containing all the results.