Skip to content

Commit

Permalink
Add bearer to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadel committed Sep 19, 2024
1 parent e11b75a commit 74ee2dd
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,16 @@ jobs:
- run:
name: Brakeman
command: bundle exec brakeman

bearer:
docker:
- image: cimg/ruby:3.2
environment:
# Set to default branch of your repo
DEFAULT_BRANCH: main
steps:
- checkout
- run: curl -sfL https://raw.githubusercontent.com/Bearer/bearer/main/contrib/install.sh | sh -s -- -b /tmp
- run: CURRENT_BRANCH=$CIRCLE_BRANCH SHA=$CIRCLE_SHA1 /tmp/bearer scan .
workflows:
version: 2
build_and_test:
Expand All @@ -80,3 +89,4 @@ workflows:
- brakeman:
requires:
- build
- bearer
32 changes: 32 additions & 0 deletions bearer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
disable-version-check: false
log-level: info
report:
fail-on-severity: critical,high,medium,low
format: ""
no-color: false
output: ""
report: security
severity: critical,high,medium,low,warning
rule:
disable-default-rules: false
only-rule: []
# Tickets to remediate these rules and remove from this stanza:
# ruby_lang_eval_linter - https://github.com/pulibrary/repecwp/issues/139
# ruby_rails_default_encryption - https://github.com/pulibrary/repecwp/issues/140
skip-rule: [ruby_lang_eval_linter, ruby_rails_default_encryption]
scan:
context: ""
data_subject_mapping: ""
disable-domain-resolution: true
domain-resolution-timeout: 3s
exit-code: -1
external-rule-dir: []
force: false
hide_progress_bar: false
internal-domains: []
parallel: 0
quiet: false
scanner:
- sast
skip-path: []
skip-test: true

0 comments on commit 74ee2dd

Please sign in to comment.