Skip to content

Commit

Permalink
Upgrade trivy to v0.53.0 (#369)
Browse files Browse the repository at this point in the history
* Upgrade trivy to v0.53.0

* update tests

---------

Co-authored-by: Simar <[email protected]>
  • Loading branch information
Dr-DevOps and simar7 authored Jul 9, 2024
1 parent 7c2007b commit 6e7b7d1
Show file tree
Hide file tree
Showing 9 changed files with 67 additions and 184 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
workflow_dispatch:

env:
TRIVY_VERSION: 0.52.2
TRIVY_VERSION: 0.53.0
BATS_LIB_PATH: '/usr/lib/'

jobs:
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ghcr.io/aquasecurity/trivy:0.52.2
FROM ghcr.io/aquasecurity/trivy:0.53.0
COPY entrypoint.sh /
RUN apk --no-cache add bash curl npm
RUN chmod +x /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.PHONY: test

test:
BATS_LIB_PATH=/usr/local/lib/ bats -r .
BATS_LIB_PATH=/usr/local/lib/ bats --recurisve --timing --verbose-run .
14 changes: 4 additions & 10 deletions test/data/config-sarif-report/report.sarif
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@
"text": "S3 buckets should each define an aws_s3_bucket_public_access_block"
},
"fullDescription": {
"text": "The \u0026#34;block public access\u0026#34; settings in S3 override individual policies that apply to a given bucket, meaning that all public access can be controlled in one central types for that bucket. It is therefore good practice to define these settings for each bucket in order to clearly define the public access that can be allowed for it."
"text": "The &#34;block public access&#34; settings in S3 override individual policies that apply to a given bucket, meaning that all public access can be controlled in one central types for that bucket. It is therefore good practice to define these settings for each bucket in order to clearly define the public access that can be allowed for it."
},
"defaultConfiguration": {
"level": "note"
Expand Down Expand Up @@ -252,8 +252,7 @@
]
}
}
],
"version": "0.50.0"
]
}
},
"results": [
Expand Down Expand Up @@ -501,12 +500,7 @@
]
}
],
"columnKind": "utf16CodeUnits",
"originalUriBaseIds": {
"ROOTPATH": {
"uri": "file://D:\\projects\\trivy-action\\test\\data\\config-sarif-report/"
}
}
"columnKind": "utf16CodeUnits"
}
]
}
}
1 change: 0 additions & 1 deletion test/data/config-scan/report.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"SchemaVersion": 2,
"CreatedAt": "2024-04-12T16:53:35.5567541+03:00",
"ArtifactName": "test/data/config-scan",
"ArtifactType": "filesystem",
"Metadata": {
Expand Down
Loading

0 comments on commit 6e7b7d1

Please sign in to comment.