Skip to content

Commit 687501d

Browse files
committed
chore(ort-scan): Make the log mention where the 'config.yml' comes from
Signed-off-by: Frank Viernau <[email protected]>
1 parent 82dc12d commit 687501d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

templates/ort-scan.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,7 @@
162162
# Generate ORT global configuration if not found and PostgreSQL is used.
163163
- |
164164
if [[ (! -z "${ORT_CONFIG_PATH}/config.yml") && (-n "${POSTGRES_URL}") ]]; then
165+
echo -e "\e[1;33m Generating a 'config.yml' with a PostgreSQL storage..."
165166
cat << EOF > ${ORT_CONFIG_PATH}/config.yml
166167
ort:
167168
packageCurationProviders:
@@ -229,6 +230,7 @@
229230
severeRuleViolationThreshold: "ERROR"
230231
EOF
231232
elif [[ ! -z "${ORT_CONFIG_PATH}/config.yml" ]]; then
233+
echo -e "\e[1;33m Generating a 'config.yml' without a PostgreSQL storage..."
232234
cat << EOF > ${ORT_CONFIG_PATH}/config.yml
233235
ort:
234236
packageCurationProviders:
@@ -237,6 +239,8 @@
237239
- type: OrtConfig
238240
enabled: false
239241
EOF
242+
else
243+
echo -e "\e[1;33m Using 'config.yml' from 'ort-config' repository..."
240244
fi
241245
242246
# Generate labels to be passed as arguments to ORT Analyzer.

0 commit comments

Comments
 (0)