File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -79,15 +79,16 @@ jobs:
7979 run : |
8080 # Strip out nondeterministic SBOM fields and save to temp file
8181 jq 'del(.version, .metadata.timestamp, .metadata.tools.services[].version)' sbom.json > ${{runner.temp}}/sbom.generated.cdx.json
82+ # diff the temp SBOM files, save output to variable, supress exit code
8283 RESULT=$(diff --brief ${{runner.temp}}/sbom.existing.cdx.json ${{runner.temp}}/sbom.generated.cdx.json || true)
8384 # Set the output variable
84- echo "::set-output name= result:: $RESULT"
85+ echo "result= $RESULT" >> $GITHUB_OUTPUT
8586
8687 - name : Generate pull request content and notice, if SBOM has changed
8788 if : ${{ steps.sbom_diff.outputs.result }}
8889 run : |
8990 printf "SBOM updated after commit ${{ github.sha }}.\n\n" | cat - ${{runner.temp}}/warnings.txt > ${{runner.temp}}/pr_body.txt
90- echo "::notice SBOM has changed"
91+ echo "::notice title=SBOM-Diff:: SBOM has changed"
9192
9293 - name : Open Pull Request, if SBOM has changed
9394 if : ${{ steps.sbom_diff.outputs.result }}
You can’t perform that action at this time.
0 commit comments