Update get_registry_images.py

3 jobs for master in 48 seconds
Status Job ID Name Coverage
  Security
failed list_images #15437
docker-security

00:00:08

failed trivy #15438
docker-security allowed to fail

00:00:39

 
  Publish
skipped pages #15439
docker-security
 
Name Stage Failure
failed
trivy Security
Checking cache for default-1...
No URL provided, cache will not be downloaded from shared cache server. Instead a local version of cache will be extracted.

Successfully extracted cache
Executing "step_script" stage of the job script
Using docker image sha256:be566ba3cf9a7cc4caafbc8d402f642dbc76541492f63531aee2d9da44c4d9b5 for quay.io/rverchere/docker-trivy with digest quay.io/rverchere/docker-trivy@sha256:ea28353c96751a4063f1b584c451770dc044c73b117797a3c365b7eae40971d5 ...
$ python get_registry_images.py
/bin/sh: eval: line 111: python: not found
Cleaning up file based variables
ERROR: Job failed: exit code 127
failed
list_images Security
{'PRIVATE-TOKEN': '[MASKED]'}
<Response [401]>
{'Server': 'nginx', 'Date': 'Thu, 18 Mar 2021 19:49:55 GMT', 'Content-Type': 'application/json', 'Content-Length': '30', 'Connection': 'keep-alive', 'Cache-Control': 'no-cache', 'Vary': 'Origin', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'SAMEORIGIN', 'X-Gitlab-Feature-Category': 'projects', 'X-Request-Id': '01F13E6AJ26QXGKHHRF74AE358', 'X-Runtime': '0.022716'}
total_pages = projects_api_responses_headers["X-Total-Pages"]
File "/usr/local/lib/python3.9/site-packages/requests/structures.py", line 54, in __getitem__
return self._store[key.lower()][1]
KeyError: 'x-total-pages'
Cleaning up file based variables
ERROR: Job failed: exit code 1