-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
action.yml
71 lines (71 loc) · 2.57 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
69
70
71
# action.yml
name: 'Dependencies license compliance checker'
author: 'Vitaly R. Samigullin'
description: 'Detect license names and types for Python PyPI packages or a list of licenses obtained by third-party tools'
branding:
icon: 'check-circle'
color: 'green'
inputs:
requirements:
description: 'Path to requirements file(s)'
external:
description: 'Path to CSV file(s) in format: `package_name,license_name[,...]`'
external-format:
description: 'External file format: csv, cocoapods, gradle'
external-options:
description: 'String of options map in EDN format'
fail:
description: 'Return non-zero exit code if specified license type(s) found'
fails-only:
description: 'Print only packages of license types specified with `fail` input.'
exclude:
description: 'PCRE to exclude matching packages'
exclude-license:
description: 'PCRE to exclude packages with matching license names'
pre:
description: 'Include pre-release and development versions'
totals:
description: 'Print totals for license types'
with-totals:
description: 'Print totals for license types'
deprecationMessage: 'Use `totals`'
totals-only:
description: 'Print only totals for license types'
headers:
description: 'Print report headers'
table-headers:
description: 'Print table headers'
deprecationMessage: 'Use `headers`'
report-format:
description: 'Report format: stdout, json, json-pretty, csv'
formatter:
description: 'Printf-style formatter string for report formatting'
github-token:
description: 'GitHub OAuth Token to increase rate-limits'
verbose:
description: 'Make output verbose'
outputs:
report:
description: 'License check report'
runs:
using: 'docker'
image: 'Dockerfile'
args:
- ${{ inputs.requirements }} # ${1}
- ${{ inputs.external }} # ${2}
- ${{ inputs.external-format }} # ${3}
- ${{ inputs.external-options }} # ${4}
- ${{ inputs.fail }} # ${5}
- ${{ inputs.fails-only }} # ${6}
- ${{ inputs.exclude }} # ${7}
- ${{ inputs.exclude-license }} # ${8}
- ${{ inputs.pre }} # ${9}
- ${{ inputs.totals }} # ${10}
- ${{ inputs.with-totals }} # ${11}
- ${{ inputs.totals-only }} # ${12}
- ${{ inputs.headers }} # ${13}
- ${{ inputs.table-headers }} # ${14}
- ${{ inputs.report-format }} # ${15}
- ${{ inputs.formatter }} # ${16}
- ${{ inputs.github-token }} # ${17}
- ${{ inputs.verbose }} # ${18}