Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add bearer to CI #482

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,17 @@ jobs:
- run:
name: Run Rspec
command: bundle exec rspec
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_accept_deploy:
Expand All @@ -82,3 +93,4 @@ workflows:
matrix:
parameters:
ruby-version: ["3.1.3"]
- bearer
33 changes: 33 additions & 0 deletions bearer.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
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_rails_open_redirect - https://github.com/pulibrary/DSS/issues/479
# ruby_rails_password_length - https://github.com/pulibrary/DSS/issues/480
# ruby_rails_default_encryption - https://github.com/pulibrary/DSS/issues/481
skip-rule: [ruby_rails_open_redirect, ruby_rails_password_length, 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
Loading