-
Notifications
You must be signed in to change notification settings - Fork 38
/
action.yaml
134 lines (130 loc) · 3.81 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
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, use 'sigrid' to use target defined in Sigrid."
required: false
default: "sigrid"
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/"
include:
description: "Comma-separated list of files and directories that should be included in the upload."
required: false
default: ""
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
subsystem:
description: "Used to map between repository directory structure versus the one known by Sigrid."
required: false
convert:
description: "Convert upload format. Only required for certain technologies, see Sigrid documentation for details."
required: false
out:
description: "Output directory for Sigrid CI feedback."
required: false
default: "sigrid-ci-output"
# Sigrid metadata
displayname:
required: false
default: ""
divisionname:
required: false
default: ""
teamnames:
required: false
default: ""
suppliernames:
required: false
default: ""
lifecyclephase:
required: false
default: ""
inproductionsince:
required: false
default: ""
businesscriticality:
required: false
default: ""
targetindustry:
required: false
default: ""
deploymenttype:
required: false
default: ""
applicationtype:
required: false
default: ""
externalid:
required: false
default: ""
isdevelopmentonly:
required: false
default: ""
remark:
required: false
default: ""
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' }}
- "--include"
- ${{ inputs.include }}
- "--subsystem"
- ${{ inputs.subsystem }}
env:
displayname: ${{ inputs.displayname }}
divisionname: ${{ inputs.divisionname }}
teamnames: ${{ inputs.teamnames }}
suppliernames: ${{ inputs.suppliernames }}
lifecyclephase: ${{ inputs.lifecyclephase }}
inproductionsince: ${{ inputs.inproductionsince }}
businesscriticality: ${{ inputs.businesscriticality }}
targetindustry: ${{ inputs.targetindustry }}
deploymenttype: ${{ inputs.deploymenttype }}
applicationtype: ${{ inputs.applicationtype }}
externalid: ${{ inputs.externalid }}
isdevelopmentonly: ${{ inputs.isdevelopmentonly }}
remark: ${{ inputs.remark }}
branding:
icon: hexagon
color: purple