maxymvlasov/Dive Action v2
Run Dive to analyze the container image efficiency
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| image | Image to analyze | yes | — |
| always-comment | Post dive analysis results as PR comment regardless of whether any inefficiencies were found. By default, comments are only posted when issues are detected. Requires `github-token` | no | false |
| collapse-inefficient-files-details | Collapse the inefficient files table in PR comments using details/summary tags | no | true |
| github-token | GitHub token to post PR comment with dive analysis | no | — |
| dive-image-registry | Docker registry to pull the Dive image from | no | ghcr.io/wagoodman/dive |
| dive-image-version | Version of the Dive docker image to use. While `latest` is supported, using a specific version with SHA is recommended for security and reproducibility | no | v0.13.1@sha256:f1886e6c32c094fc41a623c1989f5cb3e48aa766da5f0be233f911fc1d85ce10 |
| config-file | Path to the Dive configuration file. If not provided, default Dive settings will be used. Individual parameters `min-image-efficiency`, `max-wasted-ratio`, and `max-wasted-bytes` can override settings specified in `config-file`. | no | ${{ github.workspace }}/.dive.yaml |
| highest-wasted-bytes | Threshold for the maximum allowed bytes wasted expressed in B, KB, MB and GB | no | — |
| highest-user-wasted-ratio | Threshold for the maximum allowed ratio wasted bytes as a function of total image size expressed as a ratio between 0-1. Note: the base image layer is NOT included in the total image size. | no | — |
| lowest-efficiency-ratio | Threshold for the lowest allowed image efficiency ratio between 0-1 | no | — |
Outputs
no outputs