-
Notifications
You must be signed in to change notification settings - Fork 47
59 lines (47 loc) · 1.46 KB
/
architecture-guardian.yml
File metadata and controls
59 lines (47 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
59
name: Architecture Guardian
# Run the continuous architecture guardian baseline daily and on manual
# dispatch. Emits Markdown + JSON reports as workflow artifacts; the JSON
# gate step is informational (continue-on-error) so the workflow does not
# fail on advisory findings — review the uploaded artifact instead.
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
guardian:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install roam-code
run: |
python -m pip install --upgrade pip
pip install -e .
- name: Build index
run: roam init
- name: Generate guardian markdown report
run: |
mkdir -p .roam/reports
roam report guardian --md > .roam/reports/architecture_guardian.md
- name: Run guardian gate (JSON)
continue-on-error: true
run: |
roam --json report guardian > .roam/reports/architecture_guardian.json
- name: Upload guardian artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: architecture-guardian
path: .roam/reports/