forked from Software-Improvement-Group/sigridci
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yaml
62 lines (58 loc) · 1.82 KB
/
action.yaml
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
name: "Sigrid CI"
description: "Sigrid | Software Assurance Platform"
inputs:
customer:
description: "Your Sigrid customer name."
required: true
system:
description: "Your Sigrid system name."
required: true
source:
description: "Source code directory."
required: false
default: "."
targetquality:
description: "Minimum required star rating for new/changed code."
required: false
default: "3.5"
publish:
description: "Publishes your source code to Sigrid (true/false)."
required: false
default: false
publishonly:
description: "Publishes your source code to Sigrid, without waiting for feedback (true/false)."
required: false
default: false
exclude:
description: "Comma-separated list of files and directories that should not be uploaded."
required: false
default: "/bin/"
includehistory:
description: "When enabled, includes the repository history in the upload (true/false). Required for architecture quality analysis."
required: false
default: false
showupload:
description: "Outputs the list of files included in the upload to Sigrid, for troubleshooting (true/false)."
required: false
default: false
runs:
using: "docker"
image: "Dockerfile"
args:
- "--customer"
- ${{ inputs.customer }}
- "--system"
- ${{ inputs.system }}
- "--source"
- ${{ inputs.source }}
- "--targetquality"
- ${{ inputs.targetquality }}
- ${{ (inputs.publish == 'true' && '--publish') || '--dummy' }}
- ${{ (inputs.publishonly == 'true' && '--publishonly') || '--dummy' }}
- ${{ (inputs.includehistory == 'true' && '--include-history') || '--dummy' }}
- "--exclude"
- ${{ inputs.exclude }}
- ${{ (inputs.showupload == 'true' && '--showupload') || '--dummy' }}
branding:
icon: hexagon
color: purple