From 97288600c10ba8a4c497cca944a5591f3d56266e Mon Sep 17 00:00:00 2001 From: Nikita Fedkin Date: Thu, 6 Jun 2024 21:01:58 +0000 Subject: [PATCH] Add sarif from the benchmark to arficats --- .github/scripts/benchmark.py | 2 ++ .github/workflows/benchmark.yml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/.github/scripts/benchmark.py b/.github/scripts/benchmark.py index 3bb69bac0de..04e561792c7 100644 --- a/.github/scripts/benchmark.py +++ b/.github/scripts/benchmark.py @@ -20,6 +20,8 @@ def some_func(arg): cmdArgs.append('-a') cmdArgs.append('-s') cmdArgs.append('ssl') + cmdArgs.append('-r') + cmdArgs.append('sarif') cmdArgs.append('-c') cmdArgs.append(pathToConfig) cmd = ' '.join(cmdArgs) diff --git a/.github/workflows/benchmark.yml b/.github/workflows/benchmark.yml index 24f4b47c2d6..5d73464866b 100644 --- a/.github/workflows/benchmark.yml +++ b/.github/workflows/benchmark.yml @@ -52,6 +52,12 @@ jobs: - name: Analyze ssl run: pytest .github/scripts/benchmark.py --benchmark-min-rounds=3 --benchmark-timer=time.time --benchmark-json=output.json --benchmark-verbose + - name: Archive results in SARIF + uses: actions/upload-artifact@v4 + with: + name: "SARIF report" + path: bsl-ls.sarif + - name: Generation badge benchmark if: github.event_name == 'push' run: python .github/scripts/gen-bandge.py