diff --git a/.github/workflows/pana_analysis.yml b/.github/workflows/pana_analysis.yml index 7c1c4ac1..37c7603d 100644 --- a/.github/workflows/pana_analysis.yml +++ b/.github/workflows/pana_analysis.yml @@ -29,4 +29,11 @@ jobs: then echo Score too low! exit 1 - fi \ No newline at end of file + fi + + # This step is useful for PR's coming from forks. It takes the raw JSON and formats a report from it. + - name: Format scores json + env: + JSON_OUTPUT: ${{ steps.analysis.outputs.json_output }} + run: | + TOTAL_SCORE=$(jq -r '.scores.grantedPoints' <<< "$JSON_OUTPUT") \ No newline at end of file