Skip to content

Commit

Permalink
Add sarif from the benchmark to arficats
Browse files Browse the repository at this point in the history
  • Loading branch information
nixel2007 committed Jun 6, 2024
1 parent 1623f32 commit 9728860
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9728860

Please sign in to comment.