Files
containers/.vib/gitlab-runner/vib-verify.json
corico44 8a7e506f0d [bitnami/gitlab-runner] Add VIB tests (#29326)
* [bitnami/gitlab-runner] Check if gitlab-runner file exists

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/gitlab-runner] Check text inside file for gitlab-runner test

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/gitlab-runner] Add comment to try tests

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/gitlab-runner] Delete comment to try tests

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/gitlab-runner] Add check for gosu and remove checks for files

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/gitlab-runner] Add version and sed checks

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/gitlab-runner] Delete directories checker and check version

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/gitlab-runner] Delete files checker

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/gitlab-runner] Add change in docker-compose to trigger tests

Signed-off-by: Cori Avila <amisericordi@vmware.com>

* [bitnami/gitlab-runner] Delete change in docker-compose

Signed-off-by: Cori Avila <amisericordi@vmware.com>

---------

Signed-off-by: Cori Avila <amisericordi@vmware.com>
2023-04-12 16:23:28 +02:00

70 lines
1.5 KiB
JSON

{
"context": {
"resources": {
"url": "{SHA_ARCHIVE}",
"path": "{VIB_ENV_PATH}"
},
"runtime_parameters": "Y29tbWFuZDogWyJ0YWlsIiwgIi1mIiwgIi9kZXYvbnVsbCJd"
},
"phases": {
"package": {
"actions": [
{
"action_id": "container-image-package",
"params": {
"application": {
"details": {
"name": "{VIB_ENV_CONTAINER}",
"tag": "{VIB_ENV_TAG}"
}
}
}
},
{
"action_id": "container-image-lint",
"params": {
"threshold": "error"
}
}
]
},
"verify": {
"actions": [
{
"action_id": "goss",
"params": {
"resources": {
"path": "/.vib"
},
"tests_file": "gitlab-runner/goss/goss.yaml",
"vars_file": "gitlab-runner/goss/vars.yaml",
"remote": {
"pod": {
"workload": "deploy-gitlab-runner"
}
}
}
},
{
"action_id": "trivy",
"params": {
"threshold": "CRITICAL",
"vuln_type": [
"OS"
]
}
},
{
"action_id": "grype",
"params": {
"threshold": "CRITICAL",
"package_type": [
"OS"
]
}
}
]
}
}
}