File tree Expand file tree Collapse file tree 4 files changed +68
-81
lines changed Expand file tree Collapse file tree 4 files changed +68
-81
lines changed Original file line number Diff line number Diff line change @@ -145,7 +145,7 @@ ort-scan:
145
145
146
146
ORT_ADVISOR_PROVIDERS : " OSV"
147
147
148
- ORT_CLI_CONFIG_FILE : " ${CI_PROJECT_DIR}/ort.conf "
148
+ ORT_CLI_CONFIG_FILE : " ${CI_PROJECT_DIR}/config.yml "
149
149
150
150
ORT_CONFIG_DIR : " ort-configuration"
151
151
ORT_CONFIG_COPYRIGHT_GARBAGE_FILE : " ${ORT_CONFIG_DIR}/copyright-garbage.yml"
Original file line number Diff line number Diff line change
1
+ ort:
2
+ licenseFilePatterns:
3
+ licenseFilenames: [
4
+ 'copying*',
5
+ 'copyright',
6
+ 'licence*',
7
+ '*.licence',
8
+ 'license*',
9
+ '*.license',
10
+ 'unlicence',
11
+ 'unlicense'
12
+ ]
13
+
14
+ patentFilenames: [
15
+ 'patents'
16
+ ]
17
+
18
+ rootLicenseFilenames: [
19
+ 'readme*'
20
+ ]
21
+
22
+ severeIssueThreshold: $ORT_SEVERE_ISSUE_THRESHOLD
23
+ severeRuleViolationThreshold: $ORT_SEVERE_RULE_VIOLATION_THRESHOLD
24
+
25
+ enableRepositoryPackageCurations: $ORT_ENABLE_REPOSITORY_PACKAGE_CURATIONS
26
+ enableRepositoryPackageConfigurations: $ORT_ENABLE_REPOSITORY_PACKAGE_CONFIGURATIONS
27
+
28
+ scanner:
29
+ archive:
30
+ fileStorage:
31
+ localFileStorage:
32
+ directory: ~/.ort/scanner/archive
33
+ compression: false
34
+
35
+ $ORT_POSTGRES
36
+
37
+ options:
38
+ ScanCode:
39
+ commandLine: $ORT_SCANCODE_CLI_PARAMS
40
+ parseLicenseExpressions: $ORT_SCANCODE_PARSE_LICENSE_EXPRESSIONS
41
+ minVersion: $ORT_SCANCODE_MIN_VERSION
42
+ maxVersion: $ORT_SCANCODE_MAX_VERSION
43
+
44
+ storages:
45
+ local:
46
+ backend:
47
+ localFileStorage:
48
+ directory: ~/.ort/scanner/results
49
+ compression: false
50
+
51
+ $ORT_POSTGRES
52
+
53
+ storageReaders: ['$ORT_STORAGE_READERS']
54
+ storageWriters: ['$ORT_STORAGE_WRITERS']
55
+
56
+ ignorePatterns: [
57
+ '**/*.ort.yml',
58
+ '**/META-INF/DEPENDENCIES'
59
+ ]
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
#! /bin/bash -e
2
2
3
- # Create HOCON configuration file used by ORT.
3
+ # Create the YAML configuration file used by ORT.
4
4
5
5
ORT_POSTGRES=$( cat << -END
6
- postgresStorage {
7
- url = "$ORT_DB_URL "
8
- schema = "public"
9
- username = "$ORT_POSTGRES_USERNAME "
10
- password = "$ORT_POSTGRES_PASSWORD "
11
- sslmode = "require"
12
- }
6
+ postgresStorage:
7
+ url: '$ORT_DB_URL '
8
+ schema: 'public'
9
+ username: '$ORT_POSTGRES_USERNAME '
10
+ password: '$ORT_POSTGRES_PASSWORD '
11
+ sslmode: 'require'
13
12
END
14
13
)
15
14
29
28
ORT_POSTGRES=" "
30
29
fi
31
30
32
- envsubst < $CI_PROJECT_DIR /scripts/ort.conf.tmpl > $ORT_CLI_CONFIG_FILE
31
+ envsubst < $CI_PROJECT_DIR /scripts/config.yml.template > $ORT_CLI_CONFIG_FILE
You can’t perform that action at this time.
0 commit comments