aboutcode-org / aboutcode-org/scancode.io

Failure to fetch a helm chart with a docker://URL and analyze_docker_image

未關閉
#1,675 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
Python
星號
215
分支
203
平均合併
4 天 8 小時
30 天內合併 PR
6

描述

See the failure trace:
input: `docker://ghcr.io/mercedes-benz/sechub/helm-charts/pds-xray:1.4.0`
pipeline: `analyze_docker_image`

```
analyze_docker_image
Analyze Docker images.
Run Failure
Exit code 1
Execution time 1 seconds
ScanCode.io version 34.11.0
Task ID b8ce4e61-e7a7-4e5a-b674-7aec8a9bb0b7
Created date 2025-05-22 09:10
Start date 2025-05-22 09:10
End date 2025-05-22 09:10
Run log

2025-05-22 07:10:27.645 Pipeline [analyze_docker_image] starting
2025-05-22 07:10:27.648 Step [download_missing_inputs] starting
2025-05-22 07:10:27.650 Fetching input from docker://ghcr.io/mercedes-benz/sechub/helm-charts/pds-xray:1.4.0
2025-05-22 07:10:29.553 docker://ghcr.io/mercedes-benz/sechub/helm-charts/pds-xray:1.4.0 could not be fetched.
2025-05-22 07:10:29.555 Pipeline failed

Task output

InputFilesError encountered with the following issues:

Error 1: Error while executing cmd="('/opt/scancodeio/.venv/lib/python3.12/site-packages/fetchcode_container/bin/skopeo', 'copy', '--insecure-policy', 'docker://ghcr.io/mercedes-benz/sechub/helm-charts/pds-xray:1.4.0', 'docker-archive:/tmp/tmpjioznenn/ghcr_io_mercedes_benz_sechub_helm_charts_pds_xray_1_4_0.tar')": "time="2025-05-22T07:10:29Z" level=fatal msg="Error creating an updated image manifest: Unknown media type during manifest conversion: \"application/vnd.cncf.helm.chart.content.v1.tar+gzip\"""

Traceback (most recent call last):
File "/opt/scancodeio/scanpipe/pipelines/__init__.py", line 146, in download_missing_inputs
input_source.fetch()
File "/opt/scancodeio/scanpipe/models.py", line 1890, in fetch
downloaded = fetch_url(url=self.download_url)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/scancodeio/scanpipe/pipes/fetch.py", line 390, in fetch_url
downloaded = fetcher(url)
^^^^^^^^^^^^
File "/opt/scancodeio/scanpipe/pipes/fetch.py", line 321, in fetch_docker_image
output = run_command_safely(cmd_args)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/scancodeio/scanpipe/pipes/fetch.py", line 93, in run_command_safely
raise subprocess.SubprocessError(error_msg)
subprocess.SubprocessError: Error while executing cmd="('/opt/scancodeio/.venv/lib/python3.12/site-packages/fetchcode_container/bin/skopeo', 'copy', '--insecure-policy', 'docker://ghcr.io/mercedes-benz/sechub/helm-charts/pds-xray:1.4.0', 'docker-archive:/tmp/tmpjioznenn/ghcr_io_mercedes_benz_sechub_helm_charts_pds_xray_1_4_0.tar')": "time="2025-05-22T07:10:29Z" level=fatal msg="Error creating an updated image manifest: Unknown media type during manifest conversion: \"application/vnd.cncf.helm.chart.content.v1.tar+gzip\"""

Traceback:
File "/opt/scancodeio/aboutcode/pipeline/__init__.py", line 199, in execute
step(self)
File "/opt/scancodeio/scanpipe/pipelines/__init__.py", line 154, in download_missing_inputs
raise InputFilesError(error_tracebacks)

```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。