Skip to content

Commit 76071ef

Browse files
aqua-botsimar7
andauthored
chore(deps): Update trivy to v0.63.0 (#467)
* chore(deps): Update trivy to v0.63.0 * update test data --------- Co-authored-by: simar7 <[email protected]> Co-authored-by: Simar <[email protected]>
1 parent 4844d82 commit 76071ef

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
workflow_dispatch:
77

88
env:
9-
TRIVY_VERSION: 0.61.1
9+
TRIVY_VERSION: 0.63.0
1010
BATS_LIB_PATH: '/usr/lib/'
1111

1212
jobs:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ jobs:
215215
uses: aquasecurity/[email protected]
216216
with:
217217
cache: true
218-
version: v0.61.1
218+
version: v0.63.0
219219
220220
- name: Run Trivy vulnerability scanner in repo mode
221221
uses: aquasecurity/trivy-action@master
@@ -847,7 +847,7 @@ Following inputs can be used as `step.with` keys:
847847
| `github-pat` | String | | Authentication token to enable sending SBOM scan results to GitHub Dependency Graph. Can be either a GitHub Personal Access Token (PAT) or GITHUB_TOKEN |
848848
| `limit-severities-for-sarif` | Boolean | false | By default *SARIF* format enforces output of all vulnerabilities regardless of configured severities. To override this behavior set this parameter to **true** |
849849
| `docker-host` | String | | By default it is set to `unix://var/run/docker.sock`, but can be updated to help with containerized infrastructure values (`unix:/` or other prefix is required) |
850-
| `version` | String | `v0.61.1` | Trivy version to use, e.g. `latest` or `v0.61.1` |
850+
| `version` | String | `v0.63.0` | Trivy version to use, e.g. `latest` or `v0.63.0` |
851851
| `skip-setup-trivy` | Boolean | false | Skip calling the `setup-trivy` action to install `trivy` |
852852
| `token-setup-trivy` | Boolean | | Overwrite `github.token` used by `setup-trivy` to checkout the `trivy` repository |
853853

action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ inputs:
9898
version:
9999
description: 'Trivy version to use'
100100
required: false
101-
default: 'v0.61.1'
101+
default: 'v0.63.0'
102102
cache:
103103
description: 'Used to specify whether caching is needed. Set to false, if you would like to disable caching.'
104104
required: false

test/data/with-trivy-yaml-cfg/report.json

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
{
22
"SchemaVersion": 2,
3+
"CreatedAt": "2025-06-03T01:26:45.367171-06:00",
34
"ArtifactName": "alpine:3.10",
45
"ArtifactType": "container_image",
56
"Metadata": {
7+
"Size": 5842432,
68
"OS": {
79
"Family": "alpine",
810
"Name": "3.10.9",
@@ -50,7 +52,14 @@
5052
],
5153
"Image": "sha256:eb2080c455e94c22ae35b3aef9e078c492a00795412e026e4d6b41ef64bc7dd8"
5254
}
53-
}
55+
},
56+
"Layers": [
57+
{
58+
"Size": 5842432,
59+
"Digest": "sha256:396c31837116ac290458afcb928f68b6cc1c7bdd6963fc72f52f365a2a89c1b5",
60+
"DiffID": "sha256:9fb3aa2f8b8023a4bebbf92aa567caf88e38e969ada9f0ac12643b2847391635"
61+
}
62+
]
5463
},
5564
"Results": [
5665
{
@@ -63,8 +72,8 @@
6372
"PkgID": "[email protected]",
6473
"PkgName": "apk-tools",
6574
"PkgIdentifier": {
66-
"PURL": "pkg:apk/alpine/[email protected]?arch=x86_64&distro=3.10.9",
67-
"UID": "99f6581ffed6b22"
75+
"PURL": "pkg:apk/alpine/[email protected]?arch=x86_64\u0026distro=3.10.9",
76+
"UID": "b7a64ae671a99195"
6877
},
6978
"InstalledVersion": "2.10.6-r0",
7079
"FixedVersion": "2.10.7-r0",

0 commit comments

Comments
 (0)