Trivy image scan authentification with tokens #8006
-
QuestionIs it possible to run trivy scan with tokens? It says that GITLAB_TOKEN & GITHUB_TOKEN works for repository. I tried it with image scan, but it doesn't work. It only works with username & password authentification. Is it possible to use tokens for scanning private repositories? TargetContainer Image ScannerVulnerability Output FormatJSON ModeStandalone Operating SystemUbuntu 24 VersionVersion: 0.56.2 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Here is the doc You can use the github token for GHCR. |
Beta Was this translation helpful? Give feedback.
Here is the doc
https://trivy.dev/v0.57/docs/advanced/private-registries/
You can use the github token for GHCR.
https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-container-registry#authenticating-to-the-container-registry