mirror of
https://github.com/bitnami/containers.git
synced 2026-10-19 05:02:27 +02:00
[containers/*] Trivy verification (#8)
* Add trivy verification phase to the pipeline * Fix branches in pull_request_target event Signed-off-by: Fran Mulero <fmulero@vmware.com>
This commit is contained in:
@@ -7,8 +7,8 @@ on: # rebuild any PRs and main branch changes
|
||||
- synchronize
|
||||
- labeled
|
||||
branches:
|
||||
- master
|
||||
- bitnami:master
|
||||
- main
|
||||
- bitnami:main
|
||||
env:
|
||||
CSP_API_URL: https://console.cloud.vmware.com
|
||||
CSP_API_TOKEN: ${{ secrets.CSP_API_TOKEN }}
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"context": {
|
||||
"resources": {
|
||||
"url": "{VIB_ENV_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
"context": {
|
||||
"resources": {
|
||||
"url": "{VIB_ENV_URL}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "container-image-package",
|
||||
@@ -20,7 +20,26 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "container-image-lint"
|
||||
"action_id": "container-image-lint",
|
||||
"params": {
|
||||
"threshold": "warning"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
"threshold": "CRITICAL",
|
||||
"vuln_type": [
|
||||
"OS"
|
||||
],
|
||||
"application": {
|
||||
"kind": "CONTAINER_IMAGE"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
+26
-7
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"context": {
|
||||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"phases": {
|
||||
"package": {
|
||||
"context": {
|
||||
"resources": {
|
||||
"url": "{SHA_ARCHIVE}",
|
||||
"path": "{VIB_ENV_PATH}"
|
||||
}
|
||||
},
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "container-image-package",
|
||||
@@ -20,7 +20,26 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"action_id": "container-image-lint"
|
||||
"action_id": "container-image-lint",
|
||||
"params": {
|
||||
"threshold": "warning"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
"verify": {
|
||||
"actions": [
|
||||
{
|
||||
"action_id": "trivy",
|
||||
"params": {
|
||||
"threshold": "CRITICAL",
|
||||
"vuln_type": [
|
||||
"OS"
|
||||
],
|
||||
"application": {
|
||||
"kind": "CONTAINER_IMAGE"
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user