Trivy

Version: 0.67.2 Linux MacOS security static-code-analysis

Trivy is a comprehensive and versatile security scanner. Trivy has scanners that look for security issues, and targets where it can find those issues.

Targets (what Trivy can scan):

Scanners (what Trivy can find there):

Trivy supports most popular programming languages, operating systems, and platforms. For a complete list, see the Scanning Coverage page.

Installation Instructions

Linux
Depends on: docker-credential-helpers

Download Artefact
{
  "url": "{{ .SVar `.tool.trivy.download.url` }}",
  "destination_folder": "{{ .PDownloads }}",
  "output_filename": "{{ .SVar `.tool.trivy.download.filename` }}",
  "overwrite": false
}
Extract Release
{
  "destination": "{{ .PTools }}/trivy/{{ .SVar `.tool.trivy.download.version` }}",
  "skip_symlinks": true,
  "preserve_permissions": true,
  "remove_existing": true,
  "source": "{{ .PDownloads }}/{{ .SVar `.tool.trivy.download.filename` }}"
}
Make sure artefact is executable
{
  "path": "{{ .PTools }}/trivy/{{ .SVar `.tool.trivy.download.version` }}/trivy",
  "permission_bits": 504
}

MacOS
Depends on: docker-credential-helpers

Download Artefact
{
  "url": "{{ .SVar `.tool.trivy.download.url` }}",
  "destination_folder": "{{ .PDownloads }}",
  "output_filename": "{{ .SVar `.tool.trivy.download.filename` }}",
  "overwrite": false
}
Extract Release
{
  "destination": "{{ .PTools }}/trivy/{{ .SVar `.tool.trivy.download.version` }}",
  "skip_symlinks": true,
  "preserve_permissions": true,
  "remove_existing": true,
  "source": "{{ .PDownloads }}/{{ .SVar `.tool.trivy.download.filename` }}"
}
Make sure artefact is executable
{
  "path": "{{ .PTools }}/trivy/{{ .SVar `.tool.trivy.download.version` }}/trivy",
  "permission_bits": 504
}

Binaries