Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get "https://ghcr.io/v2/": tls: failed to verify certificate: x509: certificate signed by unknown authority #372

Open
LehlohonoloPsybergate opened this issue Nov 9, 2023 · 1 comment

Comments

@LehlohonoloPsybergate
Copy link

Am using running @Trivy inside a pipeline
- task: trivy@1 displayName: Scan image with Trivy inputs: loginDockerConfig: true ignoreUnfixed: true severities: HIGH,CRITICAL image: ${{ parameters.registryEndpoint }}/${{ parameters.imageName }}:$(tagToScan) options: --timeout 20m --ignorefile ${{ parameters.trivyIgnoreFile }} # add a trivyignore file to your repo with the CVE codes that you want to ignore e.g. # CVE-2023-0464 (default path is ".trivyignore") debug: ${{ parameters.trivyDebug }}

and am getting this error
Digest: sha256:275243b81dcc2728dd9b54125f62fa636528364f8d44b88b7d72ef47ac6ad86d Status: Downloaded newer image for aquasec/trivy:latest 2023-11-08T08:19:21.584Z WARN '--security-checks' is deprecated. Use '--scanners' instead. 2023-11-08T08:19:21.593Z INFO Need to update DB 2023-11-08T08:19:21.593Z INFO DB Repository: ghcr.io/aquasecurity/trivy-db 2023-11-08T08:19:21.593Z INFO Downloading DB... 2023-11-08T08:19:21.697Z FATAL init error: DB error: failed to download vulnerability DB: database download error: OCI repository error: 1 error occurred: * Get "[https://ghcr.io/v2/"](https://ghcr.io/v2/%22): tls: failed to verify certificate: x509: certificate signed by unknown authority
please assist

@wablo
Copy link

wablo commented Nov 20, 2024

Hi @LehlohonoloPsybergate ,
Your pipeline running in self-hosted environment?The environment using a proxy to connect to the Internet? Can you check the network connectivity with curl command for example curl -vvv https://ghcr.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants