Skip to content

Commit

Permalink
Merge pull request #214 from Bearer/chore/add-bearer
Browse files Browse the repository at this point in the history
feat: add Bearer
  • Loading branch information
davewichers authored Jan 8, 2024
2 parents 1680cb5 + 966a2d0 commit 122c079
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/runBearer.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env bash

# Check for install/updates at https://github.com/bearer/bearer

source scripts/requireCommand.sh

requireCommand docker

docker pull bearer/bearer --platform linux/amd64

benchmark_version=$(scripts/getBenchmarkVersion.sh)
bearer_version=$(docker run --platform linux/amd64 bearer/bearer bearer --version | grep -o '[[:digit:]]\+\.[[:digit:]]\+\.[[:digit:]]\+')
result_file="/src/results/Benchmark_$benchmark_version-Bearer-v$bearer_version.json"

docker run --platform linux/amd64 --rm -v "${PWD}:/src" bearer/bearer scan /src/src/main/ --format jsonv2 --output "$result_file" > /dev/null

0 comments on commit 122c079

Please sign in to comment.