-
Notifications
You must be signed in to change notification settings - Fork 19
60 lines (46 loc) · 1.11 KB
/
security.yml
File metadata and controls
60 lines (46 loc) · 1.11 KB
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
name: Security
on:
push:
schedule:
- cron: "00 8 * * 5"
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
brakeman-scan:
permissions:
contents: read
security-events: write
actions: read
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Ruby Setup
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Brakeman Scan
run: bin/brakeman -f sarif -o results.sarif
- name: Upload SARIF file
if: always()
uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: results.sarif
dependency-audit:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Ruby Setup
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Bundle Audit
run: bin/bundler-audit check --update
- name: Importmap Audit
run: bin/importmap audit