Skip to content
Merged
68 changes: 0 additions & 68 deletions .github/workflows/cve-weekly.yaml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/dev_module_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,3 +260,23 @@ jobs:
module_source: ${{ vars.DEV_MODULE_SOURCE}}
module_name: ${{ vars.MODULE_NAME }}
module_tag: "$MODULES_MODULE_TAG"

cve_scan_on_pr:
name: Trivy images check
runs-on: ${{ fromJSON(needs.set_vars.outputs.runner_type)}}
needs:
- set_vars
- dev_setup_build
steps:
- uses: actions/checkout@v4
- uses: deckhouse/modules-actions/cve_scan@v2
with:
image: ${{ vars.DEV_MODULE_SOURCE }}/${{ vars.MODULE_NAME }}
tag: ${{needs.set_vars.outputs.modules_module_tag}}
module_name: ${{ vars.MODULE_NAME }}
dd_url: ${{vars.DEFECTDOJO_HOST}}
dd_token: ${{secrets.DEFECTDOJO_API_TOKEN}}
trivy_registry: ${{ vars.PROD_REGISTRY }}
trivy_registry_user: ${{ vars.PROD_MODULES_REGISTRY_LOGIN }}
trivy_registry_password: ${{ secrets.PROD_MODULES_REGISTRY_PASSWORD }}
deckhouse_private_repo: ${{vars.DECKHOUSE_PRIVATE_REPO}}
13 changes: 0 additions & 13 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -138,19 +138,6 @@ tasks:
cd tools/kubeconform
./kubeconform.sh

cve:bin:
cmds:
- |
curl -LO https://github.com/aquasecurity/trivy/releases/download/v{{.TRIVY_VERSION}}/trivy_{{.TRIVY_VERSION}}_Linux-64bit.tar.gz
tar -zxvf trivy_{{.TRIVY_VERSION}}_Linux-64bit.tar.gz -C /opt/
mv /opt/trivy /usr/local/bin/trivy
chmod +x /usr/local/bin/trivy

cve:scan:
cmds:
- task: cve:bin
- tools/cve/scan-main.sh {{.REPORT_FILE_NAME}}

dlv:virt-controller:build:
desc: "Build image virt-controller with dlv"
cmd: docker build -f ./images/virt-controller/debug/dlv.Dockerfile -t "{{ .DLV_IMAGE }}" .
Expand Down
53 changes: 0 additions & 53 deletions tools/cve/scan-main.sh

This file was deleted.

Loading