Skip to content

Commit d907bef

Browse files
committed
Add NeuVector scanning
1 parent 6d05138 commit d907bef

2 files changed

Lines changed: 33 additions & 24 deletions

File tree

.github/workflows/scan.yaml

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -35,27 +35,34 @@ jobs:
3535
matrix:
3636
product_version: ${{ fromJson(needs.image_list.outputs.matrix) }}
3737
steps:
38-
- name: Run Grype image
39-
uses: MaibornWolff/secobserve_actions_templates/actions/SCA/grype_image@main
38+
# - name: Run Grype image
39+
# uses: MaibornWolff/secobserve_actions_templates/actions/SCA/grype_image@main
40+
# with:
41+
# target: docker.stackable.tech/stackable/${{ matrix.product_version.product }}:${{ matrix.product_version.version }}-stackable${{ matrix.product_version.release }}
42+
# report_name: 'dd_import_grype_image.json'
43+
# so_product_name: ${{ matrix.product_version.product }}
44+
# so_api_base_url: https://secobserve.stackable.tech
45+
# so_api_token: ${{ secrets.SECOBSERVE_API_TOKEN }}
46+
# - name: Run Trivy image
47+
# uses: MaibornWolff/secobserve_actions_templates/actions/SCA/trivy_image@main
48+
# with:
49+
# target: 'maibornwolff/dd-import:latest'
50+
# report_name: 'dd_import_trivy_image.json'
51+
# so_api_base_url: https://secobserve.stackable.tech
52+
# so_api_token: ${{ secrets.SECOBSERVE_API_TOKEN }}
53+
# so_product_name: ${{ matrix.product_version.product }}
54+
# so_branch_name: ${{ matrix.product_version.version }}-stackable${{ matrix.product_version.release }}
55+
- name: Scan Remote Image
56+
uses: neuvector/scan-action@main
4057
with:
41-
target: docker.stackable.tech/stackable/${{ matrix.product_version.product }}:${{ matrix.product_version.version }}-stackable${{ matrix.product_version.release }}
42-
report_name: 'dd_import_grype_image.json'
43-
so_product_name: ${{ matrix.product_version.product }}
44-
so_api_base_url: https://secobserve.stackable.tech
45-
so_api_token: ${{ secrets.SECOBSERVE_API_TOKEN }}
46-
- name: Run Trivy image
47-
uses: MaibornWolff/secobserve_actions_templates/actions/SCA/trivy_image@main
48-
with:
49-
target: 'maibornwolff/dd-import:latest'
50-
report_name: 'dd_import_trivy_image.json'
51-
so_api_base_url: https://secobserve.stackable.tech
52-
so_api_token: ${{ secrets.SECOBSERVE_API_TOKEN }}
53-
so_product_name: ${{ matrix.product_version.product }}
54-
so_branch_name: ${{ matrix.product_version.version }}-stackable${{ matrix.product_version.release }}
55-
- name: Upload results
56-
uses: actions/upload-artifact@v3
57-
with:
58-
name: secobserve
59-
path: |
60-
dd_import_trivy_image.json
61-
dd_import_grype_image.json
58+
image-repository: ${{ matrix.image }}
59+
image-tag: ${{ matrix.tag }}
60+
- name: List files to see if NeuVector outputs something
61+
run: ls
62+
# - name: Upload results
63+
# uses: actions/upload-artifact@v3
64+
# with:
65+
# name: secobserve
66+
# path: |
67+
# dd_import_trivy_image.json
68+
# dd_import_grype_image.json

stack_scanner/main.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ def main():
6666
tmp = {
6767
"product": product_name,
6868
"version": product_version,
69-
"release": release
69+
"release": release,
70+
"image": f"{REGISTRY_URL}/stackable/{product_name}",
71+
"tag": f"{product_version}-stackable{release}"
7072
}
7173

7274
result.append(tmp)

0 commit comments

Comments
 (0)