Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2b30463ddb |
@@ -1,7 +1,7 @@
|
|||||||
name: "build"
|
name: "build"
|
||||||
on: [push, pull_request]
|
on: [push, pull_request]
|
||||||
env:
|
env:
|
||||||
TRIVY_VERSION: 0.25.0
|
TRIVY_VERSION: 0.26.0
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: build
|
name: build
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
FROM aquasec/trivy:0.25.0
|
FROM aquasec/trivy:0.26.0
|
||||||
COPY entrypoint.sh /
|
COPY entrypoint.sh /
|
||||||
RUN apk --no-cache add bash
|
RUN apk --no-cache add bash
|
||||||
RUN chmod +x /entrypoint.sh
|
RUN chmod +x /entrypoint.sh
|
||||||
|
|||||||
@@ -442,7 +442,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"version": "0.25.0"
|
"version": "0.26.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"results": [
|
"results": [
|
||||||
|
|||||||
@@ -35,6 +35,13 @@
|
|||||||
[ "$result" == '' ]
|
[ "$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" {
|
@test "trivy repo" {
|
||||||
# trivy repo -f json -o repo.test --severity CRITICAL https://github.com/aquasecurity/trivy-action/
|
# 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/'
|
./entrypoint.sh '-b json' '-h repo.test' '-g CRITICAL' '-a repo' '-j https://github.com/aquasecurity/trivy-action/'
|
||||||
|
|||||||
Reference in New Issue
Block a user