-
Notifications
You must be signed in to change notification settings - Fork 314
/
reference.yml
394 lines (333 loc) · 11.9 KB
/
reference.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
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
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
# Copyright (C) 2022 The ORT Project Authors (see <https://github.com/oss-review-toolkit/ort/blob/main/NOTICE>)
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
# License-Filename: LICENSE
# A reference configuration file containing all possible ORT configuration options. Some of those options are mutually
# exclusive, so this file is only used to show all options and to validate the configuration.
ort:
allowedProcessEnvironmentVariableNames:
- PASSPORT
- USER_HOME
deniedProcessEnvironmentVariablesSubstrings:
- PASS
- SECRET
- TOKEN
- USER
enableRepositoryPackageConfigurations: true
enableRepositoryPackageCurations: true
# Force overwriting of any existing output files.
forceOverwrite: true
licenseFilePatterns:
licenseFilenames: ['license*']
patentFilenames: ['patents']
otherLicenseFilenames: ['readme*']
# Package configurations have to be unique by ID and provenance. Ensure that different providers do not provide
# configurations for the same package, see https://github.com/oss-review-toolkit/ort/issues/6972 for details.
packageConfigurationProviders:
- type: DefaultDir
- type: Dir
id: SomeConfigDir
options:
path: '/some-path/'
mustExist: true
- type: OrtConfig
# Package curation providers are listed from highest to lowest priority. Technically, they are applied in reverse
# order: The provider with the highest priority is applied last, so it can overwrite any previously applied curations.
packageCurationProviders:
- type: DefaultFile
- type: DefaultDir
- type: File
id: SomeCurationsFile
options:
path: '/some-path/curations.yml'
mustExist: true
- type: File
id: SomeCurationsDir
options:
path: '/some-path/curations-dir'
mustExist: false
- type: OrtConfig
enabled: '${USE_ORT_CONFIG_CURATIONS:-true}'
- type: ClearlyDefined
options:
serverUrl: 'https://api.clearlydefined.io'
minTotalLicenseScore: 80
- type: SW360
options:
restUrl: 'https://your-sw360-rest-url'
authUrl: 'https://your-authentication-url'
secrets:
username: username
password: password
clientId: clientId
clientPassword: clientPassword
token: token
severeIssueThreshold: ERROR
severeRuleViolationThreshold: ERROR
analyzer:
allowDynamicVersions: true
# A list of enabled package managers.
enabledPackageManagers: [Gradle]
# A list of disabled package managers. Disabling a package manager here overrides enabling it in
# `enabledPackageManagers`.
disabledPackageManagers: [Maven, NPM]
# A flag to control whether excluded scopes and paths should be skipped during the analysis.
skipExcluded: true
packageManagers:
Gradle:
# A list of package manager names that this package manager must run after. For example, this can be used if
# another package manager generates files that this package manager requires to run correctly.
mustRunAfter: [NPM]
GradleInspector:
options:
# An optional path to the Java home to use for Gradle project analysis. By default the Java version that ORT
# itself is run with will be used.
javaHome: "/path/to/java/home"
Yarn2:
options:
# If set to true, disable verification of HTTPS certificate of remote registries. Useful when using a proxy to
# intercept requests to the registry.
disableRegistryCertificateVerification: false
Conan:
# Holds a name of the lockfile. Required if allowDynamicVersions = false.
# The lockfile should be located in the same directory as the conanfile.py or conanfile.txt.
options:
lockfileName: "lockfile.lock"
advisor:
# A flag to control whether excluded scopes and paths should be skipped when giving the advice.
skipExcluded: true
config:
GitHubDefects:
options:
endpointUrl: 'https://api.github.com/graphql'
labelFilter: '!duplicate, !enhancement, !invalid, !question, !documentation, *'
maxNumberOfIssuesPerRepository: 50
parallelRequests: 5
secrets:
token: githubAccessToken
OssIndex:
options:
serverUrl: 'https://ossindex.sonatype.org/'
secrets:
username: username
password: password
OSV:
options:
serverUrl: 'https://api.osv.dev'
VulnerableCode:
options:
serverUrl: 'http://localhost:8000'
readTimeout: 40
secrets:
apiKey: 0123456789012345678901234567890123456789
downloader:
allowMovingRevisions: true
# Only used if the '--license-classifications-file' option is specified.
includedLicenseCategories:
- 'category-a'
- 'category-b'
# A flag to control whether excluded scopes and paths should be skipped during the download.
skipExcluded: true
sourceCodeOrigins: [VCS, ARTIFACT]
scanner:
skipConcluded: true
skipExcluded: true
archive:
enabled: true
fileStorage:
localFileStorage:
directory: ~/.ort/scanner/archive
compression: false
postgresStorage:
connection:
url: 'jdbc:postgresql://your-postgresql-server:5444/your-database'
schema: public
username: username
password: password
sslmode: require
sslcert: /defaultdir/postgresql.crt
sslkey: /defaultdir/postgresql.pk8
sslrootcert: /defaultdir/root.crt
connectionTimeout: 30000
idleTimeout: 600000
keepaliveTime: 0
maxLifetime: 1800000
maximumPoolSize: 10
minimumIdle: 600000
# Map scanner license findings to valid SPDX licenses. Note that these mappings are only applied in new scans,
# stored scan results are not affected.
detectedLicenseMapping:
BSD (Three Clause License): 'BSD-3-clause'
LicenseRef-scancode-generic-cla: 'NOASSERTION'
fileListStorage:
fileStorage:
localFileStorage:
directory: ~/.ort/scanner/file-lists
compression: false
postgresStorage:
connection:
url: 'jdbc:postgresql://your-postgresql-server:5444/your-database'
schema: public
username: username
password: password
sslmode: require
sslcert: /defaultdir/postgresql.crt
sslkey: /defaultdir/postgresql.pk8
sslrootcert: /defaultdir/root.crt
connectionTimeout: 30000
idleTimeout: 600000
keepaliveTime: 0
maxLifetime: 1800000
maximumPoolSize: 10
minimumIdle: 600000
config:
# A map from scanner plugin types to the plugin configuration.
ScanCode:
options:
# Command line options that affect the ScanCode output. If changed, stored scan results that were created with
# different options are not reused.
commandLine: '--copyright --license --info --strip-root --timeout 300'
# Command line options that do not affect the ScanCode output.
commandLineNonConfig: '--processes 4'
# Use per-file license findings instead of per-line ones.
preferFileLicense: false
# Criteria for matching stored scan results. These can be configured for any scanner that uses semantic
# versioning. Note that the 'maxVersion' is exclusive and not part of the range of accepted versions.
minVersion: '3.2.1-rc2'
maxVersion: '32.0.0'
FossId:
options:
serverUrl: 'https://fossid.example.com/instance/'
namingProjectPattern: '$Var1_$Var2'
namingScanPattern: '$Var1_#projectBaseCode_$Var3'
namingVariableVar1: myOrg
namingVariableVar2: myTeam
namingVariableVar3: myUnit
waitForResult: false
keepFailedScans: false
deltaScans: true
deltaScanLimit: 10
detectLicenseDeclarations: true
detectCopyrightStatements: true
timeout: 60
urlMappingExample: "https://my-repo.example.org(?<repoPath>.*) -> ssh://my-mapped-repo.example.org${repoPath}"
sensitivity: 10
secrets:
user: user
apiKey: XYZ
SCANOSS:
options:
apiUrl: 'https://api.osskb.org/'
secrets:
apiKey: 'your API key'
storages:
local:
backend:
localFileStorage:
directory: ~/.ort/scanner/results
compression: false
http:
backend:
httpFileStorage:
url: 'https://your-http-server'
query: '?username=user&password=123'
headers:
key1: value1
key2: value2
aws:
backend:
s3FileStorage:
accessKeyId: "accessKey"
awsRegion: "us-east-1"
bucketName: "ort-scan-results"
compression: false
customEndpoint: "http://localhost:4567"
secretAccessKey: "secret"
clearlyDefined:
serverUrl: 'https://api.clearlydefined.io'
postgres:
connection:
url: 'jdbc:postgresql://your-postgresql-server:5444/your-database'
schema: public
username: username
password: password
sslmode: require
sslcert: /defaultdir/postgresql.crt
sslkey: /defaultdir/postgresql.pk8
sslrootcert: /defaultdir/root.crt
connectionTimeout: 30000
idleTimeout: 600000
keepaliveTime: 0
maxLifetime: 1800000
maximumPoolSize: 10
minimumIdle: 600000
type: PROVENANCE_BASED
sw360Configuration:
restUrl: 'https://your-sw360-rest-url'
authUrl: 'https://your-authentication-url'
username: username
password: password
clientId: clientId
clientPassword: clientPassword
token: token
# Storage readers are listed from highest to lower priority, i.e. the first match wins.
storageReaders: [local, postgres, http, aws, clearlyDefined]
# For storage writers no priority is implied by the order; scan results are stored for all writers.
storageWriters: [postgres]
ignorePatterns: ['**/META-INF/DEPENDENCIES']
provenanceStorage:
fileStorage:
localFileStorage:
directory: ~/.ort/scanner/provenance
compression: false
postgresStorage:
connection:
url: 'jdbc:postgresql://your-postgresql-server:5444/your-database'
schema: public
username: username
password: password
sslmode: require
sslcert: /defaultdir/postgresql.crt
sslkey: /defaultdir/postgresql.pk8
sslrootcert: /defaultdir/root.crt
connectionTimeout: 30000
idleTimeout: 600000
keepaliveTime: 0
maxLifetime: 1800000
maximumPoolSize: 10
minimumIdle: 600000
reporter:
config:
CycloneDx:
options:
schema.version: 1.6
FossId:
options:
serverUrl: 'https://fossid.example.com/instance/'
secrets:
user: user
apiKey: XYZ
notifier:
mail:
hostName: 'localhost'
username: user
password: password
port: 465
useSsl: true
fromAddress: 'no-reply@oss-review-toolkit.org'
jira:
host: 'localhost'
username: user
password: password