Skip to content

Commit

Permalink
fix: correlator name (#134)
Browse files Browse the repository at this point in the history
* fix: correlator name

* fix: separating step

* fix: remove jq from step

* fix: using sbom_name
  • Loading branch information
ascheid committed Nov 23, 2022
1 parent e7c8ac5 commit fe8dbcb
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/actions/docker-scan/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ inputs:
docker_image:
description: "The docker image and tag to be scanned"
required: true
sbom_name:
description: "SBOM identification"
required: true
token:
description: "Token for allowing the action to post in the security tab"
required: true
Expand Down Expand Up @@ -32,6 +35,12 @@ runs:
sed -i 's/pkg:apk/pkg:alpine/g' dependency-results.sbom.json
shell: bash

- name: replace correlator
run: |
jq '.job.correlator = "trivy_'${{ inputs.sbom_name }}'"' dependency-results.sbom.json > sbom.tmp \
&& mv sbom.tmp dependency-results.sbom.json
shell: bash

- name: add mask to token
run: |
echo "::add-mask::${{ inputs.token }}"
Expand Down

0 comments on commit fe8dbcb

Please sign in to comment.