File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -22,11 +22,18 @@ jobs:
2222 GRYPE_INTEGRATION_SECRET : ${{ secrets.GRYPE_INTEGRATION_SECRET }}
2323 steps :
2424 - name : Checkout
25- uses : actions/checkout@v4
25+ uses : actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626 with :
2727 token : ${{ secrets.ORG_GITHUB_TOKEN }}
2828 - name : Scan
29+ id : scan
30+ uses : anchore/scan-action@df395807f4554463d4455b8047cf58e37b6acaae # v6.5.0
31+ with :
32+ path : " ."
33+ only-fixed : true
34+ output-format : json
35+ fail-build : false
36+ - name : Upload results to OpsLevel
2937 run : |
30- curl -sSfL https://raw.githubusercontent.com/anchore/grype/main/install.sh | sh -s -- -b /usr/local/bin
31- grype dir:$(pwd) --only-fixed -o json | jq '{"matches": .matches}' |
32- curl -s -X POST https://upload.opslevel.com/integrations/custom_event/${GRYPE_INTEGRATION_SECRET}?alias=${{ inputs.alias }} -H 'content-type: application/json' --data-binary @-
38+ jq '{"matches": .matches}' "${{ steps.scan.outputs.json }}" |
39+ curl -s -X POST "https://upload.opslevel.com/integrations/custom_event/${GRYPE_INTEGRATION_SECRET}?alias=${{ inputs.alias }}" -H 'content-type: application/json' --data-binary @-
You can’t perform that action at this time.
0 commit comments