-
Notifications
You must be signed in to change notification settings - Fork 198
30 lines (30 loc) · 909 Bytes
/
Copy pathsecurity.yml
File metadata and controls
30 lines (30 loc) · 909 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
name: Security
# Push CI scans only the latest commits, so a secret committed earlier and later
# removed would never be seen again. This is the full-history counterpart: same
# pinned scanners, whole history, no reports to parse — a finding fails the job.
on:
schedule:
- cron: "17 3 * * 1"
workflow_dispatch:
permissions:
contents: read
concurrency:
group: security
cancel-in-progress: true
jobs:
scan:
name: Full-history scan
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- name: Checkout complete history
uses: actions/checkout@v7
with:
fetch-depth: 0
persist-credentials: false # scanners only read the checkout
- name: Install mise system
uses: jdx/mise-action@v4
- name: Scan complete Git history
run: gitleaks git --redact=100 --verbose
- name: Scan full checkout
run: trivy fs .