Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correlator name #134

Merged
merged 4 commits into from
Nov 23, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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