forked from microsoft/msvc-code-analysis-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
48 lines (47 loc) · 2.49 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: 'Microsoft C++ Code Analysis Action'
description: 'Run Microsoft C++ Code Analysis to produce SARIF files for use in github/codeql-action/upload-sarif@v1'
inputs:
cmakeBuildDirectory:
description: 'The CMake build directory that should already be generated.'
required: true
buildConfiguration:
description: 'The build Configuration (Release, Debug, etc.) to use. This is required if using a
multi-configuration CMake generator.'
required: false
ruleset:
description: 'Ruleset file used to determine what checks are run.'
default: 'NativeRecommendedRules.ruleset'
ignoredPaths:
description: 'Identical to setting "ignoredTargetPaths" and "ignoreSystemHeaders" for the given path. This
is recommended over either option seperately.'
ignoredTargetPaths:
description: 'Any 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"'
required: false
ignoredIncludePaths:
description: 'Any 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"'
required: false
ignoreSystemHeaders:
description: 'Uses /external arguments to ignore warnings from any headers marked as SYSTEM in CMake.'
default: true
resultsPath:
description: 'Optional 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".'
required: false
loadImplicitCompilerEnv:
description: 'Load 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.'
default: true
additionalArgs:
description: 'Optional parameters to pass to every instance of the compiler.'
required: false
outputs:
sarif:
description: 'The path to the SARIF file that is generated containing all the results.'
runs:
using: 'node12'
main: 'dist/index.js'