-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (48 loc) · 1.1 KB
/
brakeman.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
---
name: Brakeman
on:
push:
branches:
- main
- development
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'docs/**'
- '.github/**'
pull_request:
branches:
- main
- development
paths-ignore:
- 'README.md'
- 'LICENSE'
- 'docs/**'
- '.github/**'
jobs:
brakeman:
name: Brakeman Security Scan
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Dependences
run: |
sudo apt-get update -y
sudo apt-get install -y libpq-dev postgresql-client build-essential libssl-dev
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.2.3
- name: Bundle Install
run: bundle install
- name: Brakeman Security Scan
run: brakeman -z -o brakeman-output.json
- name: Upload Brakeman Report
uses: actions/upload-artifact@v2
with:
name: brakeman-report
path: brakeman-output.json