Skip to content

Commit 4211ad1

Browse files
committed
ci: BrakemanをCIで実行するワークフローを追加
1 parent b0975e7 commit 4211ad1

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/brakeman.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Brakeman Security Scan
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
jobs:
8+
brakeman:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout repository
13+
uses: actions/checkout@v4
14+
15+
- name: Set up Ruby
16+
uses: ruby/setup-ruby@v1
17+
with:
18+
ruby-version: .ruby-version
19+
bundler-cache: true
20+
21+
- name: Install dependencies
22+
run: bundle install --jobs 4 --retry 3
23+
24+
- name: Run Brakeman
25+
run: bundle exec brakeman --exit-on-warn --quiet

0 commit comments

Comments
 (0)