forked from superagent-ai/grok-cli
-
-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (28 loc) · 790 Bytes
/
security.yml
File metadata and controls
34 lines (28 loc) · 790 Bytes
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
name: Security Scan
permissions:
contents: read
pull-requests: write
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
schedule:
- cron: "0 0 * * 0" # Run weekly on Sunday at midnight
jobs:
security_scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Install dependencies
run: bun install
- name: Run Security Audit
run: bun audit --audit-level=high
- name: Scan for Secrets
uses: trufflesecurity/trufflehog@v3.93.6
with:
path: ./
baseRef: ${{ github.event.pull_request.base.ref || github.ref }}
headRef: ${{ github.event.pull_request.head.ref || github.sha }}