Skip to content

Commit 21df9b1

Browse files
zhernovststeenbe
authored andcommitted
Unmask GITLAB_USER_NAME
Signed-off-by: Andriy Zhernovskyi <[email protected]>
1 parent 21bf24b commit 21df9b1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.gitlab-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,8 @@ ort-scan:
191191
- export JOB_STARTED_AT=$(date +"%Y-%m-%dT%H:%M:%S%z")
192192
- echo "export JOB_STARTED_AT='$JOB_STARTED_AT'" >> vars.env
193193

194-
- export TRIGGERER=${UPSTREAM_PIPELINE_URL:-"$GITLAB_USER_NAME manually"}
194+
# GITLAB_USER_NAME is UPPERCASED in order to unmask it in GitLab logs
195+
- export TRIGGERER=${UPSTREAM_PIPELINE_URL:-"${GITLAB_USER_NAME^^} manually"}
195196
- echo "Started by $TRIGGERER"
196197

197198
# Check variables below and fix their value to "false" (that is default for them)

0 commit comments

Comments
 (0)