diff --git a/.envrc.example b/.envrc.example index 4ea4849c4..4ff592814 100644 --- a/.envrc.example +++ b/.envrc.example @@ -10,5 +10,5 @@ export SCAN_DIR=/Users/username/OWASP export BEARER_DISABLE_VERSION_CHECK=true export BEARER_DISABLE_DEFAULT_RULES=true export BEARER_EXTERNAL_RULE_DIR=$PWD/../bearer-rules/rules -export BEARER_FORCE=true +# export BEARER_FORCE=true # export BEARER_IGNORE_GIT=true diff --git a/.github/workflows/e2e_test.yml b/.github/workflows/e2e_test.yml index 4ec83714a..171bd4359 100644 --- a/.github/workflows/e2e_test.yml +++ b/.github/workflows/e2e_test.yml @@ -23,7 +23,7 @@ jobs: with: go-version: 1.21 - name: Build binary for integration tests - run: go build -a -o ./bearer ./cmd/bearer/bearer.go + run: go build -a ./cmd/bearer/bearer.go - name: Run tests run: go test -v ./e2e/... -p 8 timeout-minutes: 10 diff --git a/.gitignore b/.gitignore index 2e89dc9fd..e4068bdf4 100644 --- a/.gitignore +++ b/.gitignore @@ -8,6 +8,7 @@ bearer-build temp/ +bearer .envrc /*.pprof diff --git a/scripts/run_tests.sh b/scripts/run_tests.sh index 30c5c9114..302dd6848 100755 --- a/scripts/run_tests.sh +++ b/scripts/run_tests.sh @@ -24,7 +24,7 @@ do_cleanup() { trap do_cleanup 1 2 3 6 do_info "Building binary..." -go build -a -o ./bearer ./cmd/bearer/bearer.go || do_error "Failed to build binary" +go build -a ./cmd/bearer/bearer.go || do_error "Failed to build binary" [ -f bearer ] || do_error "No binary found"