Skip to content

Commit

Permalink
chore: Update trivy version to 0.26.0 (#102)
Browse files Browse the repository at this point in the history
* chore: Update trivy version to 0.25.3

* feat: trivy fs - securityCheck test

* chore: update trivy 0.26.0

Co-authored-by: carolina valencia <[email protected]>
  • Loading branch information
krol3 and krol3 authored Apr 18, 2022
1 parent d7a5181 commit 2b30463
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: "build"
on: [push, pull_request]
env:
TRIVY_VERSION: 0.25.0
TRIVY_VERSION: 0.26.0
jobs:
build:
name: build
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM aquasec/trivy:0.25.0
FROM aquasec/trivy:0.26.0
COPY entrypoint.sh /
RUN apk --no-cache add bash
RUN chmod +x /entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion test/data/image-sarif.test
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@
}
}
],
"version": "0.25.0"
"version": "0.26.0"
}
},
"results": [
Expand Down
7 changes: 7 additions & 0 deletions test/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@
[ "$result" == '' ]
}

@test "trivy fs with securityChecks option" {
# trivy fs -f json --security-checks=vuln,config -o fs.test .
./entrypoint.sh '-a fs' '-j .' '-b json' '-s vuln,config' '-h fs-scheck.test'
result="$(diff ./test/data/fs.test fs.test)"
[ "$result" == '' ]
}

@test "trivy repo" {
# trivy repo -f json -o repo.test --severity CRITICAL https://github.com/aquasecurity/trivy-action/
./entrypoint.sh '-b json' '-h repo.test' '-g CRITICAL' '-a repo' '-j https://github.com/aquasecurity/trivy-action/'
Expand Down

0 comments on commit 2b30463

Please sign in to comment.