Skip to content

Commit

Permalink
ci: Fix Docker scan action (meltano#6577)
Browse files Browse the repository at this point in the history
  • Loading branch information
WillDaSilva committed Aug 8, 2022
1 parent 2533078 commit 3200964
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/actions/docker-build-scan-push/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@ runs:
continue-on-error: true
run: |
echo "View scan results at:"
echo "https://github.com/meltano/meltano/security/code-scanning?query=ref:${{ github.ref }}"
echo "https://github.com/meltano/meltano/security/code-scanning?query=ref:${{ github.ref }}+tool:Grype"
sleep 10 # Give GitHub some time to process the uploaded report
NUM_ISSUES="$(curl --no-progress-meter -H "Authorization: token ${{ inputs.token }}" \
"https://api.github.com/repos/meltano/meltano/code-scanning/alerts?tool_name=Grype&state=open&ref=${{ github.ref }}")"
[ $NUM_ISSUES = '0' ] # Error if there are any alerts that are neither fixed nor dismissed
"https://api.github.com/repos/meltano/meltano/code-scanning/alerts?tool_name=Grype&state=open&ref=${{ github.ref }}" \
| jq length)"
[ "$NUM_ISSUES" = '0' ] # Error if there are any alerts that are neither fixed nor dismissed
- name: Login to the registry
uses: docker/login-action@v2
Expand Down

0 comments on commit 3200964

Please sign in to comment.