-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathaction.yml
68 lines (57 loc) · 1.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
68
---
name: VCS Diff Lint
description: Differential code linting action
branding:
icon: check-circle
color: blue
inputs:
subdirectory:
description: |
Sub-directory to step in before the linting is performed. The
sub-directory must contain the `.vcs-diff-lint.yml` file, or RPM spec
file.
required: false
subdirectories:
description: |
Equivalent to `subdirectory` option, but multiplied. Space separated list
of sub-directories to analyze. The linter is executed multiple times, for
each sub-diretory separately.
required: false
linter_tags:
description: |
Space-separated list of linter tags (selectors) for the `vcs-diff-lint`
utility (see the `--linter-tags` option). By default all linters are
selected. Avaliable linter tags are `mypy`, `pylint`, `ruff`, and `python`.
required: false
default: "pylint"
install_rpm_packages:
description: |
Space-separated list of RPM packages that are automatically installed into
the testing environment (= Docker container).
required: false
debug:
description: Turn on debugging info.
default: 'false'
required: false
debug_all_data:
description: The whole GitHub Context expanded
default: ${{ toJSON(github) }}
required: false
pull_request_number_id:
description: "The pull request ID (internal)"
default: ${{ github.event.pull_request.number }}
required: false
pull_request_head:
description: "The pull request SHA1 without the merge commit (internal)"
default: ${{ github.event.pull_request.head.sha }}
required: false
pull_request_commits:
description: "Number of commits in this PR"
required: false
default: ${{ github.event.pull_request.commits }}
outputs:
sarif:
description: 'The SARIF file containing defects'
runs:
using: docker
image: docker://quay.io/copr/vcs-diff-lint:latest