snyk-monitor ○ success
⏱
Duration: 58s
⏳
Queued: 2s
📁
Stage: test
🖥
Runner: linux-3
Average Duration
43s
This job: 58s
Failure Rate
0.0%
last 30 days
External Links
▶
Job Execution Phases
💡 Tip: Click on any phase bar to jump to that section in the log below
▶
Job Analysis
Job Status: Passed
Status: Job passed successfully
▶
Full Job Log
231 lines
Match - of 0
1
17:05:28
Running with gitlab-runner 18.9.0 (07e534ba)
2
17:05:28
on gitlab-runner-linux-3-59cc58cb8f-zhhfl m6BsGHXRX, system ID: r_cd3Y9Qk7x1y9
3
17:05:28
feature flags: FF_USE_FASTZIP:true, FF_USE_NEW_BASH_EVAL_STRATEGY:true, FF_USE_DYNAMIC_TRACE_FORCE_SEND_INTERVAL:true, FF_SCRIPT_SECTIONS:true, FF_ENABLE_JOB_CLEANUP:true, FF_USE_ADVANCED_POD_SPEC_CONFIGURATION:true, FF_PRINT_POD_EVENTS:true, FF_USE_DUMB_INIT_WITH_KUBERNETES_EXECUTOR:true, FF_LOG_IMAGES_CONFIGURED_FOR_JOB:true, FF_CLEAN_UP_FAILED_CACHE_EXTRACT:true, FF_GIT_URLS_WITHOUT_TOKENS:true, FF_WAIT_FOR_POD_TO_BE_REACHABLE:true, FF_USE_FLEETING_ACQUIRE_HEARTBEATS:true, FF_USE_JOB_ROUTER:true
4
17:05:28
Resolving secrets
5
17:05:28
section_start:1777827928:prepare_executor
6
17:05:28
+Preparing the "kubernetes" executor
7
17:05:28
Using Kubernetes namespace: gitlab-runner
8
17:05:28
Using Kubernetes executor with image registry.scandit.com/dockerfiles/snyk:python-3.12@sha256:41b6de5ad9d99a10fc8502ac2f2f8629fc621fab19926700c2b14376ac7b2115 ...
9
17:05:28
Using attach strategy to execute scripts...
10
17:05:28
Using effective pull policy of [Always] for container build
11
17:05:28
Using effective pull policy of [Always] for container helper
12
17:05:28
Using effective pull policy of [Always] for container init-permissions
13
17:05:28
section_end:1777827928:prepare_executor
14
17:05:28
+section_start:1777827928:prepare_script
15
17:05:28
+Preparing environment
16
17:05:28
Using FF_USE_POD_ACTIVE_DEADLINE_SECONDS, the Pod activeDeadlineSeconds will be set to the job timeout: 1h0m0s...
17
17:05:28
WARNING: Advanced Pod Spec configuration enabled, merging the provided PodSpec to the generated one. This is a beta feature and is subject to change. Feedback is collected in this issue: https://gitlab.com/gitlab-org/gitlab-runner/-/issues/29659 ...
18
17:05:28
Subscribing to Kubernetes Pod events...
19
17:05:28
Type Reason Message
20
17:05:28
Normal Scheduled Successfully assigned gitlab-runner/runner-m6bsghxrx-project-621-concurrent-6-lxyeglcp to ci10
21
17:05:29
Normal Pulled Container image "registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-v18.9.0" already present on machine
22
17:05:29
Normal Created Created container: init-permissions
23
17:05:30
Normal Started Started container init-permissions
24
17:05:30
Normal Pulled Container image "registry.gitlab.com/gitlab-org/gitlab-runner/gitlab-runner-helper:x86_64-v18.9.0" already present on machine
25
17:05:31
Normal Created Created container: helper
26
17:05:31
Normal Started Started container helper
27
17:05:31
Normal Pulling Pulling image "registry.scandit.com/dockerfiles/snyk:python-3.12@sha256:41b6de5ad9d99a10fc8502ac2f2f8629fc621fab19926700c2b14376ac7b2115"
28
17:05:58
Normal Pulled Successfully pulled image "registry.scandit.com/dockerfiles/snyk:python-3.12@sha256:41b6de5ad9d99a10fc8502ac2f2f8629fc621fab19926700c2b14376ac7b2115" in 27.448s (27.448s including waiting). Image size: 499829825 bytes.
29
17:06:09
Normal Created Created container: build
30
17:06:11
Normal Started Started container build
31
17:06:14
Running on runner-m6bsghxrx-project-621-concurrent-6-lxyeglcp via gitlab-runner-linux-3-59cc58cb8f-zhhfl...
32
17:06:14
33
17:06:14
section_end:1777827974:prepare_script
34
17:06:14
+section_start:1777827974:get_sources
35
17:06:14
+Getting source from Git repository
36
17:06:14
Gitaly correlation ID: 01KQQCTNGYXYGS5G1NQNE3K4ZY
37
17:06:14
Fetching changes with git depth set to 50...
38
17:06:14
Initialized empty Git repository in /build/internal/gitlab-templates/.git/
39
17:06:14
Created fresh repository.
40
17:06:15
Checking out 32840034 as detached HEAD (ref is master)...
41
17:06:15
42
17:06:15
Skipping Git submodules setup
43
17:06:15
44
17:06:15
section_end:1777827975:get_sources
45
17:06:15
+section_start:1777827975:step_script
46
17:06:15
+Executing "step_script" stage of the job script
47
17:06:16
section_start:1777827976:section_pre_build_script_0[hide_duration=true,collapsed=true]
$ function cleanup {
48
17:06:16
rv=$?
49
17:06:16
if [ $rv -ne 0 ]; then
50
17:06:16
echo ""
51
17:06:16
echo " Failure Cause Analysis might help, please open this link:"
52
17:06:16
echo " https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
53
17:06:16
echo ""
54
17:06:16
fi
55
17:06:16
echo ""
56
17:06:16
echo "Scout Analysis: https://scout.scandit.io/analysis/projects/${CI_PROJECT_ID}/jobs/${CI_JOB_ID}"
57
17:06:16
echo ""
58
17:06:16
echo ""
59
17:06:16
echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=${EPOCHSECONDS}000"
60
17:06:16
echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=${EPOCHSECONDS}000"
61
17:06:16
echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group%7C=%7Cgitlab-runner&var-filters=source%7C%3D%7C${LOKI_LOGSOURCE}&var-filters=namespace%7C%3D%7C${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID%7C%3D%7C${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID%7C%3D%7C${CI_PIPELINE_ID}&var-filters=CI_JOB_ID%7C%3D%7C${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=${EPOCHSECONDS}000"
62
17:06:16
__date_from=$(date -d "@$(( EPOCHSECONDS - 604800 ))" +%Y-%m-%d)
63
17:06:16
__date_to=$(date -d "@$(( EPOCHSECONDS + 604800 ))" +%Y-%m-%d)
64
17:06:16
echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=${__date_from}~${__date_to}&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
65
17:06:16
echo ""
66
17:06:16
exit $rv
67
17:06:16
}
68
17:06:16
trap cleanup EXIT
69
17:06:16
echo "INFO: This is the CI job pre_build_script"
70
17:06:16
echo "INFO: It's defined in the backend/infra/onprem/k8s repo."
71
17:06:16
echo "INFO: These additional Scandit variables are available to you:"
72
17:06:16
echo " SC_K8S_NODE_NAME: $SC_K8S_NODE_NAME"
73
17:06:16
echo " SC_K8S_IMAGE_ID: $SC_K8S_IMAGE_ID"
74
17:06:16
echo " SC_K8S_KYVERNO_PATCHES: |"
75
17:06:16
echo "$SC_K8S_KYVERNO_PATCHES" | sed 's/^/ /'
76
17:06:16
echo "cpu (r/l): ${SC_K8S_REQUESTS_CPU}/${SC_K8S_LIMITS_CPU}"
77
17:06:16
if command -v numfmt >/dev/null 2>&1; then
78
17:06:16
echo "memory (r/l): $(numfmt --to=iec --suffix=B $SC_K8S_REQUESTS_MEMORY)/$(numfmt --to=iec --suffix=B $SC_K8S_LIMITS_MEMORY)"
79
17:06:16
else
80
17:06:16
echo "memory (r/l): ${SC_K8S_REQUESTS_MEMORY}/${SC_K8S_LIMITS_MEMORY}"
81
17:06:16
fi
82
17:06:16
__start_time=${EPOCHSECONDS}
83
17:06:16
echo ""
84
17:06:16
echo "Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-host=${SC_K8S_NODE_NAME}&var-namespace=${SC_K8S_NAMESPACE}&var-pod=${HOSTNAME}&var-resolution=15&from=${__start_time}000&to=now"
85
17:06:16
echo "Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=${GRAFANA_DATASOURCE}&var-node=${SC_K8S_NODE_NAME}&var-resolution=15s&from=${__start_time}000&to=now"
86
17:06:16
echo "Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=${LOKI_DATASOURCE}&var-filters=log_group%7C%3D%7Cgitlab-runner&var-filters=source%7C%3D%7C${LOKI_LOGSOURCE}&var-filters=namespace%7C%3D%7C${SC_K8S_NAMESPACE}&var-filters=CI_PROJECT_ID%7C%3D%7C${CI_PROJECT_ID}&var-filters=CI_PIPELINE_ID%7C%3D%7C${CI_PIPELINE_ID}&var-filters=CI_JOB_ID%7C%3D%7C${CI_JOB_ID}&sortOrder=Ascending&from=${__start_time}000&to=now"
87
17:06:16
__date_from=$(date -d "@$(( EPOCHSECONDS - 604800 ))" +%Y-%m-%d)
88
17:06:16
__date_to=$(date -d "@$(( EPOCHSECONDS + 604800 ))" +%Y-%m-%d)
89
17:06:16
echo "Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=${__date_from}~${__date_to}&job_name=${CI_JOB_NAME}&project=${CI_PROJECT_PATH}"
90
17:06:16
echo ""
91
17:06:16
echo "Setting up credentials for Gitlab Python registries"
92
17:06:16
mkdir -p ~
93
17:06:16
echo "machine gitlab.scandit.com" > ~/.netrc
94
17:06:16
echo "login gitlab-ci-token" >> ~/.netrc
95
17:06:16
echo "password ${CI_JOB_TOKEN}" >> ~/.netrc
96
17:06:16
chmod 600 ~/.netrc
97
17:06:16
if command -v git &> /dev/null && [ "$(id -u)" -ne 0 ]; then
98
17:06:16
git config --global --add safe.directory $CI_PROJECT_DIR
99
17:06:16
fi
100
17:06:16
sleep infinity &
101
17:06:16
echo $! > ~/.bg_pid
102
17:06:16
section_end:1777827976:section_pre_build_script_0
103
17:06:16
INFO: This is the CI job pre_build_script
104
17:06:16
INFO: It's defined in the backend/infra/onprem/k8s repo.
105
17:06:16
INFO: These additional Scandit variables are available to you:
106
17:06:16
SC_K8S_NODE_NAME: ci10
107
17:06:16
SC_K8S_IMAGE_ID:
108
17:06:16
SC_K8S_KYVERNO_PATCHES: |
109
17:06:16
110
17:06:16
cpu (r/l): 1/8
111
17:06:16
memory (r/l): 1.0GB/16GB
112
17:06:16
113
17:06:16
Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-host=ci10&var-namespace=gitlab-runner&var-pod=runner-m6bsghxrx-project-621-concurrent-6-lxyeglcp&var-resolution=15&from=1777827976000&to=now
114
17:06:16
Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-node=ci10&var-resolution=15s&from=1777827976000&to=now
115
17:06:16
Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group%7C%3D%7Cgitlab-runner&var-filters=source%7C%3D%7Czrh.int.scandit.io&var-filters=namespace%7C%3D%7Cgitlab-runner&var-filters=CI_PROJECT_ID%7C%3D%7C621&var-filters=CI_PIPELINE_ID%7C%3D%7C1576293&var-filters=CI_JOB_ID%7C%3D%7C54273493&sortOrder=Ascending&from=1777827976000&to=now
116
17:06:16
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-04-26~2026-05-10&job_name=snyk-monitor&project=internal/gitlab-templates
117
17:06:16
118
17:06:16
Setting up credentials for Gitlab Python registries
119
17:06:16
$ uv pip install --system -r requirements.txt
120
17:06:16
Using Python 3.12.13 environment at: /usr/local
121
17:06:17
Resolved 7 packages in 683ms
122
17:06:17
Downloading pygments (1.2MiB)
123
17:06:17
Downloaded pygments
124
17:06:17
Prepared 7 packages in 118ms
125
17:06:17
Installed 7 packages in 30ms
126
17:06:17
+ coverage==7.13.5
127
17:06:17
+ iniconfig==2.3.0
128
17:06:17
+ packaging==26.2
129
17:06:17
+ pluggy==1.6.0
130
17:06:17
+ pygments==2.20.0
131
17:06:17
+ pytest==9.0.3
132
17:06:17
+ pytest-cov==7.1.0
133
17:06:17
section_start:1777827977:section_script_step_1[hide_duration=true,collapsed=true]
$ set -e
134
17:06:17
135
17:06:17
function log_info() {
136
17:06:17
echo -e "[\e[1;94mINFO\e[0m] $*"
137
17:06:17
}
138
17:06:17
139
17:06:17
function log_warn() {
140
17:06:17
echo -e "[\e[1;93mWARN\e[0m] $*"
141
17:06:17
}
142
17:06:17
143
17:06:17
function log_error() {
144
17:06:17
echo -e "[\e[1;91mERROR\e[0m] $*"
145
17:06:17
}
146
17:06:17
147
17:06:17
function fail() {
148
17:06:17
log_error "$*"
149
17:06:17
exit 1
150
17:06:17
}
151
17:06:17
152
17:06:17
function assert_defined() {
153
17:06:17
if [[ -z "$1" ]]
154
17:06:17
then
155
17:06:17
log_error "$2"
156
17:06:17
exit 1
157
17:06:17
fi
158
17:06:17
}
159
17:06:17
160
17:06:17
function snyk_setup() {
161
17:06:17
# If SNYK_FILE is set, use it as a target, otherwise use --all-projects
162
17:06:17
if [[ -n "${SNYK_FILE}" ]]; then
163
17:06:17
SNYK_TARGET="--file=${SNYK_FILE}"
164
17:06:17
else
165
17:06:17
SNYK_TARGET="--all-projects"
166
17:06:17
fi
167
17:06:17
168
17:06:17
log_info "Targeting $SNYK_TARGET"
169
17:06:17
170
17:06:17
# Set log level based on SNYK_LOG_LEVEL
171
17:06:17
if [[ "$SNYK_LOG_LEVEL" == "info" ]]; then
172
17:06:17
SNYK_LOG_LEVEL=""
173
17:06:17
elif [[ "$SNYK_LOG_LEVEL" == "debug" ]]; then
174
17:06:17
SNYK_LOG_LEVEL="--debug"
175
17:06:17
elif [[ "$SNYK_LOG_LEVEL" == "trace" ]]; then
176
17:06:17
SNYK_LOG_LEVEL="--debug --log-level=trace"
177
17:06:17
fi
178
17:06:17
}
179
17:06:17
section_end:1777827977:section_script_step_1
180
17:06:17
$ assert_defined "$SNYK_TOKEN" "No SNYK_TOKEN defined. You have to provide a valid token for accessing Snyk."
181
17:06:17
$ snyk_setup
182
17:06:17
[INFO] Targeting --file=requirements.txt
183
17:06:17
$ set -x
184
17:06:17
++ echo '$ snyk $SNYK_COMMAND $SNYK_TARGET --org=$SNYK_ORG --remote-repo-url=$SNYK_REMOTE_REPO_URL --policy-path=$SNYK_POLICY_PATH ${SNYK_EXCLUDE:+--exclude=$SNYK_EXCLUDE} ${SNYK_TARGET_REFERENCE:+--target-reference=$SNYK_TARGET_REFERENCE} ${SNYK_PROJECT_ENVIRONMENT:+--project-environment=$SNYK_PROJECT_ENVIRONMENT} ${SNYK_PROJECT_LIFECYCLE:+--project-lifecycle=$SNYK_PROJECT_LIFECYCLE} ${SNYK_PROJECT_TAGS:+--project-tags=$SNYK_PROJECT_TAGS} $SNYK_LOG_LEVEL $SNYK_EXTRA_PARAMETERS'
185
17:06:17
$ snyk $SNYK_COMMAND $SNYK_TARGET --org=$SNYK_ORG --remote-repo-url=$SNYK_REMOTE_REPO_URL --policy-path=$SNYK_POLICY_PATH ${SNYK_EXCLUDE:+--exclude=$SNYK_EXCLUDE} ${SNYK_TARGET_REFERENCE:+--target-reference=$SNYK_TARGET_REFERENCE} ${SNYK_PROJECT_ENVIRONMENT:+--project-environment=$SNYK_PROJECT_ENVIRONMENT} ${SNYK_PROJECT_LIFECYCLE:+--project-lifecycle=$SNYK_PROJECT_LIFECYCLE} ${SNYK_PROJECT_TAGS:+--project-tags=$SNYK_PROJECT_TAGS} $SNYK_LOG_LEVEL $SNYK_EXTRA_PARAMETERS
186
17:06:17
++ snyk monitor --file=requirements.txt --org=d688d452-cf04-4620-84f0-3431ce4d741a --remote-repo-url=internal/gitlab-templates --policy-path=/build/internal/gitlab-templates/.snyk
187
17:06:22
188
17:06:22
Monitoring /build/internal/gitlab-templates (gitlab-templates)...
189
17:06:22
190
17:06:22
Explore this snapshot at https://app.snyk.io/org/scandit-internal/project/dbdfd00c-1dff-430e-8c66-3099fa27c3a1/history/8132267a-04bb-4040-8757-a7eb6a10e013
191
17:06:22
192
17:06:22
Tip: Detected multiple supported manifests (2), use --all-projects to scan all of them at once.
193
17:06:22
194
17:06:22
Notifications about newly disclosed issues related to these dependencies will be emailed to you.
195
17:06:22
196
17:06:23
++ echo '$ set +x'
197
17:06:23
$ set +x
198
17:06:23
++ set +x
199
17:06:23
200
17:06:23
Scout Analysis: https://scout.scandit.io/analysis/projects/621/jobs/54273493
201
17:06:23
202
17:06:23
203
17:06:23
Grafana Pod-View: https://grafana.scandit.com/d/k8s_views_pods/kubernetes-views-pods?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-host=ci10&var-namespace=gitlab-runner&var-pod=runner-m6bsghxrx-project-621-concurrent-6-lxyeglcp&var-resolution=15&from=1777827976000&to=1777827983000
204
17:06:23
Grafana Node-View: https://grafana.scandit.com/d/k8s_views_nodes/kubernetes-views-nodes?orgId=1&refresh=1m&var-datasource=KpIiby5Vz&var-node=ci10&var-resolution=15s&from=1777827976000&to=1777827983000
205
17:06:23
Loki Logs: https://grafana.scandit.com/a/grafana-lokiexplore-app/explore/log_group/gitlab-runner/logs?var-ds=nVsAo7UVk&var-filters=log_group%7C=%7Cgitlab-runner&var-filters=source%7C%3D%7Czrh.int.scandit.io&var-filters=namespace%7C%3D%7Cgitlab-runner&var-filters=CI_PROJECT_ID%7C%3D%7C621&var-filters=CI_PIPELINE_ID%7C%3D%7C1576293&var-filters=CI_JOB_ID%7C%3D%7C54273493&sortOrder=Ascending&from=1777827976000&to=1777827983000
206
17:06:23
Lilibet Statistics: https://lilibet.scandit.io/dashboard/204-job-drill-down?date_range=2026-04-26~2026-05-10&job_name=snyk-monitor&project=internal/gitlab-templates
207
17:06:23
208
17:06:23
209
17:06:23
section_end:1777827983:step_script
210
17:06:23
+section_start:1777827983:after_script
211
17:06:23
+Running after_script
212
17:06:23
Running after script...
213
17:06:23
section_start:1777827983:section_after_script_step_0[hide_duration=true,collapsed=true]
$ cat <<-EOD
214
17:06:23
----------------------------------------------------------
215
17:06:23
Need help? Documentation on the Snyk jobs can be found at:
216
17:06:23
https://gitlab.scandit.com/internal/gitlab-templates/-/blob/master/.gitlab/snyk.md
217
17:06:23
EOD
218
17:06:23
section_end:1777827983:section_after_script_step_0
219
17:06:23
----------------------------------------------------------
220
17:06:23
Need help? Documentation on the Snyk jobs can be found at:
221
17:06:23
https://gitlab.scandit.com/internal/gitlab-templates/-/blob/master/.gitlab/snyk.md
222
17:06:23
223
17:06:23
section_end:1777827983:after_script
224
17:06:23
+section_start:1777827983:cleanup_file_variables
225
17:06:23
+Cleaning up project directory and file based variables
226
17:06:25
HEAD is now at 3284003 Merge branch 'renovate/docker-digests' into 'master'
227
17:06:25
228
17:06:25
section_end:1777827985:cleanup_file_variables
229
17:06:25
+
230
17:06:25
Job succeeded
231