-
Notifications
You must be signed in to change notification settings - Fork 0
94 lines (87 loc) · 2.3 KB
/
Copy pathsecurity.yml
File metadata and controls
94 lines (87 loc) · 2.3 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
name: HelixAgent Security & Supply Chain
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "31 6 * * 1"
workflow_dispatch:
permissions:
contents: read
security-events: write
jobs:
codeql:
name: CodeQL
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: github/codeql-action/init@v4
with:
languages: python
- uses: github/codeql-action/autobuild@v4
- uses: github/codeql-action/analyze@v4
gitleaks:
name: Secret Scanning
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Scan current source tree
run: |
docker run --rm \
-v "$PWD:/repo" \
-w /repo \
ghcr.io/gitleaks/gitleaks:latest \
detect --source . --no-git --redact --no-banner --exit-code 1
trivy:
name: Trivy Filesystem Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: aquasecurity/trivy-action@master
with:
scan-type: fs
scan-ref: .
format: sarif
output: trivy-results.sarif
severity: HIGH,CRITICAL
ignore-unfixed: true
exit-code: "0"
- uses: github/codeql-action/upload-sarif@v4
with:
sarif_file: trivy-results.sarif
sbom:
name: CycloneDX SBOM
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: anchore/sbom-action@v0
with:
path: .
format: cyclonedx-json
output-file: sbom.cdx.json
- uses: actions/upload-artifact@v7
with:
name: helixagent-sbom
path: sbom.cdx.json
dependency-audit:
name: Dependency Audit
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.11"
cache: pip
- run: pip install pip-audit
- name: Generate audit report
run: |
set +e
pip-audit -r requirements.txt --format json --output pip-audit.json
echo "Dependency findings retained for triage."
exit 0
- uses: actions/upload-artifact@v7
with:
name: pip-audit-report
path: pip-audit.json
if-no-files-found: warn