-
Notifications
You must be signed in to change notification settings - Fork 11
74 lines (61 loc) · 1.92 KB
/
Copy pathdeps-drift.yml
File metadata and controls
74 lines (61 loc) · 1.92 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
# Scheduled dependency drift + advisory reporting (TASK-0108).
#
# Informational channel only: never part of pull-request CI, so routine
# checks stay deterministic and offline. Each ecosystem is its own job
# (grouped output, bounded logs). Failures here surface drift/vulnerabilities
# for manual triage — nothing auto-merges from this workflow.
name: Dependency Drift Report
on:
schedule:
- cron: "0 6 * * 1" # weekly, Monday 06:00 UTC
workflow_dispatch:
permissions:
contents: read
jobs:
rust:
name: Rust advisories + duplicates
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install cargo-audit
uses: taiki-e/install-action@v2
with:
tool: cargo-audit
- name: Advisory scan (fails on unacknowledged vulnerabilities)
run: cargo audit
- name: Duplicate versions report (informational)
run: cargo tree --duplicates || echo "no duplicate versions"
node:
name: pi-watcher npm drift
runs-on: ubuntu-latest
defaults:
run:
working-directory: pi-watcher
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v4
with:
node-version: 24
- name: Install (reproducibility probe)
run: npm ci
- name: Security audit (fails on high/critical)
run: npm audit --audit-level=high
- name: Outdated report (informational, bounded)
run: npm outdated || true
nix:
name: Nix input freshness
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: root
dir: .
- name: pi-watcher
dir: pi-watcher
steps:
- uses: actions/checkout@v3
- name: Current pinned inputs (drift is reviewed manually)
run: nix flake metadata "${{ matrix.dir }}" 2>/dev/null | grep -E "github:|ref:" | head -20