From bf86472f11aa44bccb189a8019870e237671e749 Mon Sep 17 00:00:00 2001 From: Sam Tobin-Hochstadt Date: Mon, 6 Jul 2020 11:23:05 -0400 Subject: [PATCH] Adjust name to distinguish sarif files. --- .../workflows/scanbuild_static-analysis.yml | 51 ++++++++++++++++--- 1 file changed, 45 insertions(+), 6 deletions(-) diff --git a/.github/workflows/scanbuild_static-analysis.yml b/.github/workflows/scanbuild_static-analysis.yml index c66b151d84..b196c1ec2c 100644 --- a/.github/workflows/scanbuild_static-analysis.yml +++ b/.github/workflows/scanbuild_static-analysis.yml @@ -16,7 +16,7 @@ jobs: - name: Install dependencies run: | apt-get update - apt-get install -y libffi-dev unzip python libxml2-dev libfindbin-libs-perl make gcc g++ git tree + apt-get install -y libffi-dev unzip python libxml2-dev libfindbin-libs-perl make gcc g++ git tree jq moreutils - uses: actions/checkout@v2 with: fetch-depth: 100 @@ -42,11 +42,24 @@ jobs: working-directory: ./racket/src run: | export cpus=$(grep -c ^processor /proc/cpuinfo) - scan-build -sarif -o ../../racketcgc-report -analyzer-config 'crosscheck-with-z3=true' make -j$((cpus + 1)) + scan-build -sarif -o ../../racketcgc-report -analyzer-config 'crosscheck-with-z3=true' make -j$((cpus + 1)) cgc - name: Move sarif results run: | mkdir sarif-files find racketcgc-report -type f -name '*.sarif' -exec cp \{\} sarif-files/ \; + - name: Adjust tool name + run: | + cd sarif-files + cat > adjust.sh < adjust.sh < adjust.sh <