forked from iisaphd/enroll
-
Notifications
You must be signed in to change notification settings - Fork 3
75 lines (73 loc) · 2.24 KB
/
security-checks.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
name: Security Checks
on:
push:
schedule:
- cron: '0 5 * * *'
jobs:
bearer:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: install bearer
run: |
sudo apt-get install apt-transport-https
echo "deb [trusted=yes] https://apt.fury.io/bearer/ /" | sudo tee -a /etc/apt/sources.list.d/fury.list
sudo apt-get update
sudo apt-get install bearer
- name: run bearer
run: |
bearer scan --quiet --config-file ./bearer.yml .
- name: build bearer report
if: failure()
run: |
bearer scan --quiet --config-file ./bearer.yml --format html --output bearer.html .
- name: upload bearer failure report
uses: actions/upload-artifact@v4
if: failure()
with:
name: Security Reports
path: bearer.html
brakeman:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: artplan1/brakeman-action@v1.2.1
with:
flags: "--color"
# - uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true
# - name: install brakeman
# run: |
# gem install brakeman
# - name: run brakeman
# run: |
# brakeman --format html --output brakeman.html
# - name: upload brakeman failure report
# uses: actions/upload-artifact@v3
# if: failure()
# with:
# name: Security Reports
# path: brakeman.html
bundler-audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: install bundler-audit
run: |
gem install bundler-audit && bundle-audit update
- name: run bundler-audit
run: |
bundle-audit --output=bundler_audit.txt
- name: upload bundler-audit failure report
uses: actions/upload-artifact@v3
if: failure()
with:
name: Security Reports
path: bundler_audit.txt