-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathaction.yml
67 lines (64 loc) · 2.89 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: "Static analysis for C++/Python project"
description: "Static analysis with cppcheck & clang-tidy for C++, pylint for Python. Posts results to PRs or console."
inputs:
github_token:
description: 'Github token used for Github API requests'
default: ${{ github.token }}
pr_num:
description: 'Pull request number for which the comment will be created'
default: ${{ github.event.pull_request.number }}
repo:
description: 'Repository name'
default: ${{ github.repository }}
pr_repo:
description: 'Head repository (This is useful when using Action with [pull_request_target])'
default: ${{ github.event.pull_request.head.repo.full_name }}
pr_head:
description: 'Head (branch) for PR (same as `pr_repo` input, useful with [pull_request_target]'
default: ${{ github.event.pull_request.head.ref }}
comment_title:
description: 'Title for comment with the raport. This should be an unique name'
default: Static analysis result
exclude_dir:
description: 'Directories (space separated) which should be excluded from the raport'
apt_pckgs:
description: 'Additional (space separated) packages that need to be installed in order for project to compile'
init_script:
description: |
'Optional shell script that will be run before configuring project (i.e. running CMake command).'
'This should be used, when the project requires some environmental set-up beforehand'
'Script will be run with 2 arguments: `root_dir`(root directory of user's code) and `build_dir`(build directory created for running SA)'
'Note. `apt_pckgs` will run before this script, just in case you need some packages installed'
'Also this script will be run in the root of the project (`root_dir`)'
cppcheck_args:
description: 'cppcheck (space separated) arguments that will be used'
default: --enable=all --suppress=missingIncludeSystem --inline-suppr --inconclusive
clang_tidy_args:
description: 'clang-tidy arguments that will be used (example: -checks="*,fuchsia-*,google-*,zircon-*"'
report_pr_changes_only:
description: 'Only post the issues found within the changes introduced in this Pull Request'
default: false
use_cmake:
description: 'Determines wether CMake should be used to generate compile_commands.json file'
default: true
cmake_args:
description: 'Additional CMake arguments'
force_console_print:
description: 'Output the action result to console, instead of creating the comment'
default: false
verbose:
description: 'Verbose output. Used for debugging'
default: false
language:
description: 'Programming language to check for. Supported languages are: C++/Python'
default: C++
pylint_args:
description: 'PyLint options'
python_dirs:
description: 'Directories containing python files to be checked'
runs:
using: "docker"
image: "Dockerfile"
branding:
icon: "book-open"
color: "white"