vulnerability-scan/README.md
Kai Reichart 161bddc54b
Some checks failed
/ test_build_docker (push) Failing after 36s
added trivy scanning
2024-11-28 14:20:21 +01:00

21 lines
658 B
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Run Trivy Image Scanner GitHub Action
This GitHub Action scans Docker images for vulnerabilities, secrets, licenses, and misconfigurations using [Trivy](https://github.com/aquasecurity/trivy).
## Inputs
| Input Name | Description | Required | Type |
|------------|-----------------------|----------|--------|
| `image` | The Docker image to scan. | Yes | string |
## Usage
This action can be used in other workflows with `workflow_call`. Heres an example:
```yaml
jobs:
scan:
uses:DevFW-CICD/vulnerability-scan/.github/workflows/trivy-image-scan.yml@main
with:
image: 'my-registry.com/project/image:latest'
```