-
Notifications
You must be signed in to change notification settings - Fork 0
53 lines (42 loc) · 1.32 KB
/
veritas-audit.yml
File metadata and controls
53 lines (42 loc) · 1.32 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
name: veritas-audit
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
audit:
runs-on: windows-latest
steps:
- name: Checkout 37-data-model
uses: actions/checkout@v4
path: 37-data-model
- name: Checkout 48-eva-veritas
uses: actions/checkout@v4
with:
repository: eva-foundry/48-eva-veritas
path: 48-eva-veritas
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Install veritas dependencies
working-directory: 48-eva-veritas
run: npm install
- name: Run veritas audit
working-directory: 48-eva-veritas
run: |
node src/cli.js audit --repo ../37-data-model --format json > audit-result.json
- name: Check MTI threshold
shell: pwsh
working-directory: 48-eva-veritas
run: |
$result = Get-Content audit-result.json | ConvertFrom-Json
$mti = $result.mti_score
$threshold = 70
Write-Host "MTI Score: $mti (threshold: $threshold)"
if ($mti -lt $threshold) {
Write-Error "❌ MTI=$mti below threshold $threshold - merge BLOCKED"
exit 1
}
Write-Host "✅ MTI=$mti meets threshold $threshold - merge ALLOWED"