Repository navigation
58 lines (48 loc) · 1.46 KB
/
Copy pathsecurity.yml
File metadata and controls
58 lines (48 loc) · 1.46 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
name: "Security, Supply-Chain & Vulnerability Audit"
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: '0 6 * * 1' # Weekly every Monday at 06:00 UTC
workflow_dispatch:
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
jobs:
govulncheck:
name: Go Vulnerability Scanner (govulncheck)
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v7
- name: Set up Go
uses: actions/setup-go@v7
with:
go-version: "stable"
check-latest: true
cache: true
- name: Install govulncheck
run: go install golang.org/x/vuln/cmd/govulncheck@latest
- name: Run govulncheck Scan
run: govulncheck ./...
gitleaks:
name: Secret & Credential Leak Scan (Gitleaks)
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v7
with:
fetch-depth: 0
- name: Install Gitleaks
run: |
GITLEAKS_VERSION="8.21.2"
curl -sSL "https://github.com/gitleaks/gitleaks/releases/download/v${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION}_linux_x64.tar.gz" -o gitleaks.tar.gz
tar -xzf gitleaks.tar.gz
sudo mv gitleaks /usr/local/bin/
gitleaks version
- name: Run Gitleaks Secret Detection
run: |
gitleaks detect --source . --config .gitleaks.toml --verbose --redact