Skip to content

Commit

Permalink
try loop
Browse files Browse the repository at this point in the history
  • Loading branch information
timothycarambat committed Dec 12, 2024
1 parent 54b5b0a commit 6cea804
Showing 1 changed file with 23 additions and 11 deletions.
34 changes: 23 additions & 11 deletions .github/workflows/dev-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,19 +92,31 @@ jobs:
echo "CVE_EXCEPTIONS=$CVE_NAMES" >> $GITHUB_OUTPUT
shell: bash

# About VEX attestations https://docs.docker.com/scout/explore/exceptions/
# Justifications https://github.com/openvex/spec/blob/main/OPENVEX-SPEC.md#status-justifications
- name: Add VEX attestations
uses: docker/scout-cli-action@v1
with:
command: attestation-add
only-severity: critical,high
tags: ${{ steps.meta.outputs.tags }}
file: ./docker/vex/${{ matrix.cve }}.vex.json
predicate-type: https://openvex.dev/ns/v0.2.0

cve_matrix:
strategy:
matrix:
cve: ${{ fromJSON(format('[{0}]', steps.cve-list.outputs.CVE_EXCEPTIONS)) }}
steps:
- name: Add VEX attestations
uses: docker/scout-cli-action@v1
with:
command: attestation-add
only-severity: critical,high
tags: ${{ steps.meta.outputs.tags }}
file: ./docker/vex/${{ matrix.cve }}.vex.json
predicate-type: https://openvex.dev/ns/v0.2.0

# About VEX attestations https://docs.docker.com/scout/explore/exceptions/
# Justifications https://github.com/openvex/spec/blob/main/OPENVEX-SPEC.md#status-justifications
# - name: Add VEX attestations
# uses: docker/scout-cli-action@v1
# with:
# command: attestation-add
# only-severity: critical,high
# tags: ${{ steps.meta.outputs.tags }}
# file: ./docker/vex/${{ matrix.cve }}.vex.json
# predicate-type: https://openvex.dev/ns/v0.2.0 strategy:

# run: |
# echo $CVE_EXCEPTIONS
Expand All @@ -117,4 +129,4 @@ jobs:
# --predicate-type https://openvex.dev/ns/v0.2.0 \
# $tag
# done
# done
# done

0 comments on commit 6cea804

Please sign in to comment.