|
|
|
@ -35,11 +35,12 @@ jobs:
|
|
|
|
|
run: |
|
|
|
|
|
docker build -t docker.io/my-organization/my-app:${{ github.sha }}
|
|
|
|
|
- name: Run vulnerability scanner
|
|
|
|
|
uses: aquasecurity/trivy-action@0.0.4
|
|
|
|
|
uses: aquasecurity/trivy-action@0.0.5
|
|
|
|
|
with:
|
|
|
|
|
image-ref: 'docker.io/my-organization/my-app:${{ github.sha }}'
|
|
|
|
|
format: 'table'
|
|
|
|
|
exit-code: '1'
|
|
|
|
|
severity: 'CRITICAL,HIGH'
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
## Customizing
|
|
|
|
@ -48,8 +49,9 @@ jobs:
|
|
|
|
|
|
|
|
|
|
Following inputs can be used as `step.with` keys:
|
|
|
|
|
|
|
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|
|-------------|--------|---------|-------------------------------------------|
|
|
|
|
|
| `image-ref` | String | | Image reference, e.g. `alpine:3.10.2` |
|
|
|
|
|
| `format` | String | `table` | Output format (`table`, `json`) |
|
|
|
|
|
| `exit-code` | String | `0` | exit code when vulnerabilities were found |
|
|
|
|
|
| Name | Type | Default | Description |
|
|
|
|
|
|-------------|--------|------------------------------------|-----------------------------------------------|
|
|
|
|
|
| `image-ref` | String | | Image reference, e.g. `alpine:3.10.2` |
|
|
|
|
|
| `format` | String | `table` | Output format (`table`, `json`) |
|
|
|
|
|
| `exit-code` | String | `0` | exit code when vulnerabilities were found |
|
|
|
|
|
| `severity` | String | `UNKNOWN,LOW,MEDIUM,HIGH,CRITICAL` | severities of vulnerabilities to be displayed |
|
|
|
|
|