Skip to content

Commit

Permalink
Add nasa-scrub
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanpadams authored Nov 21, 2023
1 parent 532ea8a commit a5c8032
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,27 @@ jobs:

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2

- run: |
pip install nasa-scrub
results_dir=`realpath ${{ github.workspace }}/../results`
sarif_files=`find $results_dir -name '*.sarif'`
for sarif_file in $sarif_files
do
output_file="$results_dir/$(basename $sarif_file .sarif).scrub"
python3 -m scrub.tools.parsers.translate_results $sarif_file $output_file ${{ github.workspace }} scrub
done
python3 -m scrub.tools.parsers.csv_parser $results_dir
echo "RESULTS_DIR=$results_dir" >> $GITHUB_ENV
- name: Upload CodeQL Artifacts
uses: actions/upload-artifact@v3
with:
name: codeql-artifacts
path: ${{ env.RESULTS_DIR }}

0 comments on commit a5c8032

Please sign in to comment.