@bugb-technologies/bravos 1.15.0 → 1.16.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli.js CHANGED
@@ -787,9 +787,22 @@ export function buildProgram(io, result) {
787
787
  }));
788
788
  program
789
789
  .command('doctor [dir]')
790
- .description('Read-only check of the tools, licence, skills and hooks bravos relies on.')
790
+ .description('Read-only check of the tools, licence, skills and hooks bravos relies on. --fix-hooks removes Bravos\'s or Joseph\'s user-level hooks whose script is gone, after a backup.')
791
791
  .addHelpText('after', DOCTOR_HELP)
792
- .action((dir) => guardedAsync(async (lines) => {
792
+ .option('--fix-hooks', 'remove Bravos\'s or Joseph\'s own user-level hooks whose script no longer exists (each settings file is backed up first; nothing else is changed)')
793
+ .action((dir, opts) => guardedAsync(async (lines) => {
794
+ // @comment -- "bravos doctor --fix-hooks: the person's own command for removing dead Bravos or Joseph hooks from their user settings (hooks/lib/dead-hooks.mjs fixDeadHooks): it says each entry it removes and where the backup is. An agent is told to name the command, never to run it."
795
+ if (opts.fixHooks) {
796
+ const D = (await import(pathToFileURL(join(hooksDir(), 'lib', 'dead-hooks.mjs')).href));
797
+ const r = D.fixDeadHooks({ ...io.env, HOME: homeOf(io.env) });
798
+ if (!r.removed.length)
799
+ lines.push('No dead user-level hooks: nothing to remove.');
800
+ for (const d of r.removed)
801
+ lines.push(`removed from ${d.file} (${d.event}): ${d.script} no longer exists`);
802
+ if (r.backups.length)
803
+ lines.push(`backup${r.backups.length === 1 ? '' : 's'}: ${r.backups.join(', ')}`, 'Start a new session: the "hook error" line is gone.');
804
+ return;
805
+ }
793
806
  const L = await licenceLib();
794
807
  const v = L.status(io.env);
795
808
  lines.push(formatDoctor(await withLegacySkills(withLicence(runDoctor(dirArg(dir), io.env), L.planLine(v), v.licensed), io.env)));
package/dist/doctor.js CHANGED
@@ -132,7 +132,9 @@ export function withLicence(r, plan, licensed) {
132
132
  export async function withLegacySkills(r, env) {
133
133
  const L = (await import(pathToFileURL(join(hooksDir(), 'lib', 'legacy-skills.mjs')).href));
134
134
  const found = L.legacySkills({ ...env, HOME: env.HOME ?? homedir() });
135
- return { ...r, legacy_skills: found, ...(found.length ? { legacy_command: L.retireCommand(found) } : {}) };
135
+ const D = (await import(pathToFileURL(join(hooksDir(), 'lib', 'dead-hooks.mjs')).href));
136
+ const dead = D.deadUserHooks({ ...env, HOME: env.HOME ?? homedir() });
137
+ return { ...r, legacy_skills: found, ...(found.length ? { legacy_command: L.retireCommand(found) } : {}), dead_hooks: dead };
136
138
  }
137
139
  export function formatDoctor(r) {
138
140
  const yn = (b) => (b ? 'yes' : 'no');
@@ -148,6 +150,7 @@ export function formatDoctor(r) {
148
150
  `autopilot claude: ${yn(r.autopilot.claude)} codex: ${yn(r.autopilot.codex)}${r.autopilot.claude || r.autopilot.codex ? '' : ' (opt-in: bravos setup --autopilot)'}`,
149
151
  `cards claude: ${yn(r.cards.claude)} codex: ${yn(r.cards.codex)}${r.cards.claude || r.cards.codex ? (process.env.BRAVOS_THREAT_CARDS === 'off' ? ' (off for this run: BRAVOS_THREAT_CARDS=off)' : '') : ' (bravos setup adds it)'}`,
150
152
  `coach claude: ${yn(r.coach.claude)} codex: ${yn(r.coach.codex)}${r.coach.claude || r.coach.codex ? (process.env.BRAVOS_COACH === 'off' ? ' (off for this run: BRAVOS_COACH=off)' : '') : ' (bravos setup adds it)'}`,
153
+ ...(r.dead_hooks?.length ? [`✘ dead user-level hooks ${r.dead_hooks.map((d) => `${d.file} ${d.event}: ${d.script} is gone`).join('; ')} — every session shows "hook error". Remove them (a backup is kept): bravos doctor --fix-hooks`] : r.dead_hooks ? ['✔ no dead user-level hooks'] : []),
151
154
  ...(r.legacy_skills?.length ? [`✘ old Python bravos skills ${r.legacy_skills.map((f) => `${f.root}: ${f.names.join(', ')}`).join('; ')} — your agent may load them instead of this repository's. Move them aside (reversible): ${r.legacy_command}`] : r.legacy_skills ? ['✔ no old Python bravos skills at user level'] : []),
152
155
  ...(r.updates ? [updatesLine(r.updates)] : []),
153
156
  ...(r.theme ? [`colours ${r.theme.theme} (${r.theme.source})${r.theme.source.startsWith('default') ? ' — pick yours: BRAVOS_THEME=light or dark, or bravos setup' : ''}`] : []),
package/dist/guide.js CHANGED
@@ -157,6 +157,7 @@ export const GUIDE_TOPICS = [
157
157
  { name: 'bravos-recheck', body: ['After a fix: stale claims, retest-kit replay, no new exposure, what to test next.'] },
158
158
  { name: 'bravos-resync', body: ['A stale checkout or a left-behind branch: carries its annotation work onto the base with bravos resync, maps duplicate ids, re-reads every carried claim on changed code.'] },
159
159
  { name: 'bravos-sast', body: ['Licensed static analysis joined to guardlink claims and reachability; gates on findings new since the base.'] },
160
+ { name: 'bravos-threat-hunt', body: ['"Identify all the threats": maps the attack surface with the code graph, runs SAST, records every finding in the threat model with bravos-annotate, rebuilds the dashboard and reports from what was recorded, then recommends confirming the top three.'] },
160
161
  { name: 'bravos-campaign', body: ['A goal over many rounds: disjoint batches, one subagent each, a gate per batch, rests, a final before-and-after.'] },
161
162
  { name: 'bravos-schedule', body: ['Recurring upkeep with each harness\'s own mechanism; never live tests from a loop.'] },
162
163
  { name: 'bravos-cicd', body: ['Audits and writes the security workflows.'] },
package/docs/GUIDE.md CHANGED
@@ -298,6 +298,10 @@ A stale checkout or a left-behind branch: carries its annotation work onto the b
298
298
 
299
299
  Licensed static analysis joined to guardlink claims and reachability; gates on findings new since the base.
300
300
 
301
+ ### bravos-threat-hunt
302
+
303
+ "Identify all the threats": maps the attack surface with the code graph, runs SAST, records every finding in the threat model with bravos-annotate, rebuilds the dashboard and reports from what was recorded, then recommends confirming the top three.
304
+
301
305
  ### bravos-campaign
302
306
 
303
307
  A goal over many rounds: disjoint batches, one subagent each, a gate per batch, rests, a final before-and-after.
package/docs/UPGRADING.md CHANGED
@@ -2,6 +2,30 @@
2
2
 
3
3
  After `npm install -g @bugb-technologies/bravos`, run **`bravos setup`** in a repository you work in: it brings this machine and that repository up to date. In repositories you work in with an agent you can skip even that: the agent runs it at the start of a session. From 1.12 on you do not have to watch for releases: Bravos tells you when a newer version is out, and after you install it the agent brings each repository up to date. The notes below say what else changes, newest first. (Before 1.9 the same was `bravos setup --tools -y` per machine and `bravos sync` per repository; both still work.)
4
4
 
5
+ ## 1.16.1
6
+
7
+ - **The workflows Bravos installs are hardened.** This covers the PR gate, the Claude, Codex and Copilot nightlies, and Copilot's setup steps. These are the same issues a SAST scan reports against them:
8
+ - **Every action is pinned to a commit,** with its version in a comment beside it. A moved tag can no longer change what runs.
9
+ - **No token is left in the checkout:** checkouts use `persist-credentials: false`. Copilot's setup is the exception, because Copilot pushes from it.
10
+ - **The nightly push stays authenticated another way.** The token is masked in the log and sent only to the two git commands that need it. It is never written to git config.
11
+ - **guardlink is pinned:** the PR gate and Copilot's setup install the pinned version (2.6.0) instead of whatever npm has that day.
12
+ - **Run `bravos setup`** in each repository that has these workflows, then commit the changed `.github/workflows` files.
13
+ - **It updates only the Bravos workflows you already have.** It never adds one you didn't choose.
14
+ - **A workflow you edited yourself is left as it is.** `bravos sync --ci --force` replaces it.
15
+
16
+ ## 1.16.0
17
+
18
+ - **"Identify all the threats" uses everything Bravos has.** A new skill, `bravos-threat-hunt`, runs when you ask to identify, find or list threats or vulnerabilities, for a security review or audit, or to threat-model the codebase:
19
+ - **Maps the attack surface** with the code graph (Team).
20
+ - **Runs SAST** (Team, with bravos-cli).
21
+ - **Records every finding** in the threat model with a deep annotation pass. A repository of up to 200 files is covered in full, in parallel batches; a larger one gets the most exposed parts first, then an offer to continue.
22
+ - **Rebuilds the dashboard,** then **reports from what was recorded,** with where each finding came from.
23
+ - **Recommends confirming** the top three.
24
+ - **Free plan, or no graph or SAST:** it reads the code and says plainly what was unavailable.
25
+ - **It is reached two ways.** The front-door skill routes these requests to it, and the coach tells the agent "this is a threat hunt" every time you ask. Questions about what is already recorded ("what are the issues?") still get the quick answer and the dashboard.
26
+ - **Dead hooks are named.** If your user settings (`~/.claude/settings.json`, `~/.codex/hooks.json`) still run an old Bravos or Joseph hook whose script is gone, every session prints "hook error". Bravos now says so in the banner, the briefing and `bravos doctor`.
27
+ - **The fix:** run `bravos doctor --fix-hooks` yourself. It removes only those entries and keeps a backup; your other hooks are left alone.
28
+
5
29
  ## 1.15.0
6
30
 
7
31
  - **Click a design rule to see it in full.** In `bravos dashboard`, Threat model → Design rules is now a list beside a detail pane. The pane shows:
@@ -5,6 +5,7 @@ import { homedir } from 'node:os';
5
5
  import { basename, delimiter, dirname, join } from 'node:path';
6
6
  import { contextGate, readContext } from './context.mjs';
7
7
  import { legacySkills, legacySkillsLine } from './legacy-skills.mjs';
8
+ import { deadHooksLine, deadUserHooks } from './dead-hooks.mjs';
8
9
  import { THEMES } from './palette.mjs';
9
10
  import { commitsLine, commonDirFrom, readHandoff, readPrefs } from './prefs.mjs';
10
11
  import { cliVersion, newer, readUpdate, updateLine } from './update-check.mjs';
@@ -290,6 +291,9 @@ export function buildBriefing(inputs) {
290
291
  // Skills the retired Python bravos left at user level: the agent must not follow them (hooks/lib/legacy-skills.mjs).
291
292
  const legacy = legacySkillsLine(i.legacy);
292
293
  if (legacy) tail.push(legacy);
294
+ // Bravos's or Joseph's own user-level hooks whose script is gone: they fail at every session start (hooks/lib/dead-hooks.mjs).
295
+ const deadHooks = deadHooksLine(i.deadHooks);
296
+ if (deadHooks) tail.push(deadHooks);
293
297
  if ((i.autopilot || i.prePr) && hooksLocked(i)) {
294
298
  // The repo registers the hooks for everyone; this person's copy answers nothing until they have a licence.
295
299
  const which = i.autopilot ? 'Autopilot (the end-of-turn check and the pre-PR gate)' : 'The pre-PR gate';
@@ -604,6 +608,7 @@ export async function collect(root, env, { deadlineMs = 20000, nextCount = 3 } =
604
608
  prePr: prePrRegistered(root),
605
609
  shadow: userSkillsShadow(root, env),
606
610
  legacy: legacySkills(env),
611
+ deadHooks: deadUserHooks({ ...env, HOME: env.HOME || homedir() }),
607
612
  autopilot: autopilotRegistered(root),
608
613
  proving: readProving(root),
609
614
  workspace,
@@ -880,6 +885,7 @@ function bannerWarnings(i, plan) {
880
885
  // One line for old Python skills at user level; bravos doctor prints the command that moves them aside.
881
886
  const old = arr(i.legacy).reduce((n, f) => n + arr(f?.names).length, 0);
882
887
  if (old > 0) lines.push(`! ${old} old Python bravos skill${old === 1 ? '' : 's'} in your user folder · bravos doctor`);
888
+ if (arr(i.deadHooks).length) lines.push(`! a user-level hook runs a script that is gone (${i.deadHooks[0].script}) · bravos doctor --fix-hooks`);
883
889
  if (i.update?.latest && i.cli && newer(i.update.latest, i.cli)) lines.push(`~ Update available: bravos ${i.update.latest} (you have ${i.cli}) · npm install -g @bugb-technologies/bravos`);
884
890
  return lines;
885
891
  }
@@ -70,6 +70,17 @@ export function startCoach(commonDir, sessionId, inputs) {
70
70
  const STRONG = /\b(threats?|vulns?|vulnerab\w*|findings?|exposures?|cves?|exploitable|attack surface|threat model|security (?:posture|picture|status|issues?|problems?|risks?)|risks?|risky|dashboard)\b/i;
71
71
  const SOFT = /\b(?:what|which|show|list|any|identified|found|open|known|all|remaining|outstanding)\b[^.?!\n]{0,40}\b(?:issues|bugs|problems)\b|\bwhat(?:'s| is) open\b/i;
72
72
 
73
+ // A request to find the threats rather than read what is recorded: a finding verb with a threat word, or the names of the exercise.
74
+ const HUNT_VERB = /\b(?:identify|find|list|enumerate|scan|audit|review|hunt|discover|map|look for|check for|search for|detect|spot)\b/i;
75
+ const HUNT_NOUN = /\b(?:threats?|vulns?|vulnerab\w*|security (?:issues?|problems?|holes?|bugs?|flaws?|risks?)|risks?|attack surface|weakness\w*|exploits?)\b/i;
76
+ const HUNT_NAME = /\b(?:threat[- ]model(?:ling|ing)? (?:this|the|my|our)|security (?:review|audit|assessment)|pen ?test (?:this|the)|what (?:could|can) an attacker)\b/i;
77
+
78
+ // @comment -- "Whether the person asks Bravos to find the threats (identify, find, list, scan, audit or review them; a security review or audit; threat-model this) rather than to read what is already recorded. Pure."
79
+ export function asksForHunt(prompt) {
80
+ const p = String(prompt ?? '').slice(0, 4000);
81
+ return HUNT_NAME.test(p) || (HUNT_VERB.test(p) && HUNT_NOUN.test(p));
82
+ }
83
+
73
84
  // @comment -- "Whether the person's prompt asks about the security picture: issues, threats, vulnerabilities, findings, risks, exposures, the dashboard. Pure."
74
85
  export function asksAboutIssues(prompt) {
75
86
  const p = String(prompt ?? '').slice(0, 4000);
@@ -116,7 +127,12 @@ export function coachTurn({ record, prompt, dashboard = null, modelChangedAt = 0
116
127
  const topics = [];
117
128
  let opened = record.opened;
118
129
 
119
- if (asksAboutIssues(prompt)) {
130
+ if (asksForHunt(prompt)) {
131
+ // A hunt every time it is asked: each is a request, and the skill rebuilds the dashboard itself.
132
+ lines.push(`Bravos: this is a threat hunt. Follow ${k('bravos-threat-hunt')}: ask the code graph for the attack surface and run SAST first (where available), record each finding in the threat model with ${k('bravos-annotate')}, then rebuild the dashboard and report from what was recorded. Do not answer from reading the code alone.`);
133
+ topics.push('hunt');
134
+ opened = true;
135
+ } else if (asksAboutIssues(prompt)) {
120
136
  lines.push(opened
121
137
  ? 'Bravos: they are asking about the security picture. As you answer, rebuild the dashboard without waiting on it (`bravos dashboard --no-open`, as a background job or subagent) and give its path in one line.'
122
138
  : 'Bravos: they are asking about the security picture. As you answer, build the dashboard without waiting on it (`bravos dashboard`, as a background job or subagent): it rebuilds from the code and opens in their browser. Say in one line that it is opening.');
@@ -0,0 +1,79 @@
1
+ // @comment -- "Finds Bravos's own user-level hooks that point at a script which no longer exists: an entry in ~/.claude/settings.json or ~/.codex/hooks.json that runs node on an .mjs under ~/.joseph, ~/.bravos or a .bravos/hooks folder that is gone (an old Joseph install, a removed user-level setup). Such an entry fails at every session start, in every project, as 'hook error'. Reading is file reads only; removing is fixDeadHooks(), which a person runs through bravos doctor --fix-hooks, never an agent. Dependency-free."
2
+ import { copyFileSync, existsSync, readFileSync, writeFileSync } from 'node:fs';
3
+ import { isAbsolute, join } from 'node:path';
4
+
5
+ export const USER_HOOK_FILES = ['.claude/settings.json', '.codex/hooks.json'];
6
+ // node "<path>.mjs" or node <path>.mjs, with the path's home written as ~, $HOME or ${HOME}.
7
+ const NODE_SCRIPT = /\bnode\s+"?((?:~|\$\{?HOME\}?|\/)[^"\s]*\.mjs)"?/;
8
+ const OURS = /\/\.(?:joseph|bravos)\/|\/\.bravos\/hooks\//;
9
+
10
+ const expand = (p, home) => p.replace(/^~(?=\/)/, home).replace(/^\$\{?HOME\}?(?=\/)/, home);
11
+
12
+ // @comment -- "The dead entries: [{ file, event, command, script }] for each hook command in the user's settings files that runs one of Bravos's or Joseph's scripts and whose script is missing. A command that is not ours, or whose script exists, is never listed; an unreadable settings file lists nothing."
13
+ export function deadUserHooks(env = process.env) {
14
+ const home = env?.HOME;
15
+ if (!home) return [];
16
+ const out = [];
17
+ for (const rel of USER_HOOK_FILES) {
18
+ const file = join(home, rel);
19
+ let doc;
20
+ try {
21
+ doc = JSON.parse(readFileSync(file, 'utf8'));
22
+ } catch {
23
+ continue;
24
+ }
25
+ for (const [event, groups] of Object.entries(doc?.hooks ?? {})) {
26
+ if (!Array.isArray(groups)) continue;
27
+ for (const g of groups) {
28
+ for (const h of Array.isArray(g?.hooks) ? g.hooks : []) {
29
+ const command = typeof h?.command === 'string' ? h.command : '';
30
+ const m = NODE_SCRIPT.exec(command);
31
+ if (!m) continue;
32
+ const script = expand(m[1], home);
33
+ if (!isAbsolute(script) || !OURS.test(script) || existsSync(script)) continue;
34
+ out.push({ file: join('~', rel), event, command, script: script.replace(home, '~') });
35
+ }
36
+ }
37
+ }
38
+ }
39
+ return out;
40
+ }
41
+
42
+ // @comment -- "The briefing's and banner's line for dead user-level hooks: what fails and the one command that removes them, which the person runs. Null when there are none."
43
+ export function deadHooksLine(dead) {
44
+ if (!Array.isArray(dead) || !dead.length) return null;
45
+ const scripts = [...new Set(dead.map((d) => d.script))];
46
+ return `Dead hook: your user settings run ${scripts.length === 1 ? 'a script that no longer exists' : `${scripts.length} scripts that no longer exist`} (${scripts.join(', ')}), so every session in every project shows "hook error". Tell the person once: bravos doctor --fix-hooks, in their own terminal, removes ${dead.length === 1 ? 'it' : 'them'} and keeps a backup. Never edit their settings yourself.`;
47
+ }
48
+
49
+ // @comment -- "Removes the dead entries from the user's settings files, and nothing else: each file is backed up beside itself first (<file>.bravos-backup-<time>), a group left with no hooks is dropped, an event left with no groups is dropped, and every other key and hook is kept. Returns what was removed and where the backups are."
50
+ export function fixDeadHooks(env = process.env, now = new Date()) {
51
+ const home = env?.HOME;
52
+ const dead = deadUserHooks(env);
53
+ if (!home || !dead.length) return { removed: [], backups: [] };
54
+ const removed = [];
55
+ const backups = [];
56
+ for (const rel of USER_HOOK_FILES) {
57
+ const mine = dead.filter((d) => d.file === join('~', rel));
58
+ if (!mine.length) continue;
59
+ const file = join(home, rel);
60
+ const doc = JSON.parse(readFileSync(file, 'utf8'));
61
+ const gone = new Set(mine.map((d) => d.command));
62
+ for (const [event, groups] of Object.entries(doc.hooks ?? {})) {
63
+ if (!Array.isArray(groups)) continue;
64
+ const kept = groups
65
+ .map((g) => (Array.isArray(g?.hooks) ? { ...g, hooks: g.hooks.filter((h) => !(typeof h?.command === 'string' && gone.has(h.command))) } : g))
66
+ .filter((g) => !(Array.isArray(g?.hooks) && g.hooks.length === 0));
67
+ if (kept.length) doc.hooks[event] = kept;
68
+ else delete doc.hooks[event];
69
+ }
70
+ if (doc.hooks && !Object.keys(doc.hooks).length) delete doc.hooks;
71
+ const backup = `${file}.bravos-backup-${now.toISOString().replace(/[:.]/g, '-')}`;
72
+ copyFileSync(file, backup);
73
+ writeFileSync(file, JSON.stringify(doc, null, 2) + '\n');
74
+ backups.push(backup.replace(home, '~'));
75
+ removed.push(...mine);
76
+ }
77
+ return { removed, backups };
78
+ }
79
+
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bugb-technologies/bravos",
3
- "version": "1.15.0",
3
+ "version": "1.16.1",
4
4
  "description": "Skills pack and installer that make Claude Code and Codex power users of guardlink (threat-model-as-code) and cert-x-gen (pentest-as-code).",
5
5
  "keywords": [
6
6
  "security",
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bravos
3
- description: "Start here in any repo bravos is installed in: reads the security picture, explains the evidence loop in five lines, and routes to bravos-annotate, bravos-codegraph or bravos-ship. Use when asked where to start on security, what is open or confirmed, what to fix next, or whenever a task touches security-relevant code."
3
+ description: "Start here in any repo bravos is installed in: reads the security picture, explains the evidence loop in five lines, and routes to bravos-threat-hunt, bravos-annotate, bravos-codegraph or bravos-ship. Use when asked where to start on security, what is open or confirmed, what to fix next, or whenever a task touches security-relevant code."
4
4
  ---
5
5
  # Bravos: where this repo stands and what to do next
6
6
 
@@ -19,7 +19,8 @@ description: "Start here in any repo bravos is installed in: reads the security
19
19
  Three states are independent of each other: open / mitigated / accepted · untested / confirmed / refuted · verified / stale. A mitigated claim can still be untested; a confirmed one can go stale.
20
20
  3. Route the request:
21
21
  no `.guardlink/intent.md` yet, business logic, "what matters here", "is this intended?", learning the app → bravos-context (with no intent it drafts one and opens the intake page without waiting; annotation goes on against the draft, and each session asks once until a named person confirms it or declines).
22
- coverage, annotating, "threat-model this", a worklist in the briefing → bravos-annotate.
22
+ "identify / find / list all the threats or vulnerabilities", a security review or audit, "threat-model this codebase", "what could an attacker do here" → bravos-threat-hunt: the code graph and SAST first, every finding recorded in the threat model, then the dashboard and a report drawn from what was recorded. Never answer such a request from reading alone.
23
+ coverage, annotating, a worklist in the briefing → bravos-annotate.
23
24
  reachability, blast radius, "is this live", tracing a handler to sinks → bravos-codegraph.
24
25
  before a PR, push for review, or marking a draft ready → bravos-ship.
25
26
  pentest templates, a retest kit, making a claim testable → bravos-templatize.
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bravos-annotate
3
- description: "Keep the GuardLink threat model correct and growing, in this session: pick a budgeted slice of files (or go deep on request), follow guardlink's own playbook skill, write annotations that meet the evidence bar, run the lint gate until clean, and report the coverage delta. Use when asked to annotate, threat-model or cover code, after writing security-relevant code, when the briefing shows coverage or a worklist, and when asked to annotate deeply or run multiple rounds."
3
+ description: "Keep the GuardLink threat model correct and growing, in this session: pick a budgeted slice of files (or go deep on request), follow guardlink's own playbook skill, write annotations that meet the evidence bar, run the lint gate until clean, and report the coverage delta. Use when asked to annotate, threat-model or cover code, after writing security-relevant code, when the briefing shows coverage or a worklist, and when asked to annotate deeply or run multiple rounds. A request to identify or find all the threats is bravos-threat-hunt, which runs this skill after the code graph and SAST."
4
4
  ---
5
5
  # Bravos annotate: a budgeted slice of the threat model, gated
6
6
 
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: bravos-codegraph
3
- description: "Ask the repo's code graph (codegraph-mcp) one bounded question — routes, attack surface, sinks a symbol reaches, whether code is live, blast radius, annotation gaps in a change — instead of grepping. Use before editing security-relevant code, when judging a finding's reachability, when tracing a handler to its sinks, and when bravos-annotate or bravos-ship needs targets."
3
+ description: "Ask the repo's code graph (codegraph-mcp) one bounded question — routes, attack surface, sinks a symbol reaches, whether code is live, blast radius, annotation gaps in a change — instead of grepping. Use before editing security-relevant code, when judging a finding's reachability, when tracing a handler to its sinks, and when bravos-annotate or bravos-ship needs targets. A request to identify or find all the threats is bravos-threat-hunt, which asks this graph first."
4
4
  ---
5
5
  # Bravos codegraph: one question, one tool, one verdict
6
6
 
@@ -0,0 +1,51 @@
1
+ ---
2
+ name: bravos-threat-hunt
3
+ description: "Find every threat in the codebase with everything Bravos has, and record them: the code graph's attack surface and entry points first, then SAST, then each finding written into the GuardLink threat model as a claim (annotate), the dashboard rebuilt, and a report drawn from what was recorded, never from reading alone. Use when asked to identify, find, list or enumerate the threats or vulnerabilities, to do a security review or audit, to threat-model the codebase, to scan for security issues, or what an attacker could do here."
4
+ ---
5
+ # Bravos threat hunt: map, scan, record, report
6
+
7
+ ## When
8
+
9
+ - The person asks to identify, find, list or enumerate the threats, vulnerabilities, security issues, risks or weaknesses in the codebase (or a part of it).
10
+ - The person asks for a security review, a security audit, or to threat-model the codebase, or what an attacker could do here.
11
+ - The coach line says "this is a threat hunt".
12
+
13
+ A question about what is already recorded ("what is open?", "what are the issues?") is not a hunt: answer it from the briefing and the dashboard, as the bravos skill says.
14
+
15
+ ## Do
16
+
17
+ 1. Say in one line what you are about to do: map the attack surface, run the scanner, record each finding in the threat model, then report from it. Read the briefing's `Plan:`, `Code graph:`, `SAST:` and `Intent:` lines (without a briefing, `node .bravos/hooks/session-start.mjs --briefing`). With no `.guardlink/intent.md`, run bravos-context's draft first (it writes a draft and opens the intake page without waiting), so severities are judged against what the app is for.
18
+ 2. Map the attack surface. On the Team plan with the code graph current: ask `codegraph_attack_surface`, `codegraph_entry_points`, `codegraph_auth_boundary` and `codegraph_routes` (or `bravos graph <question> --json`; bravos-codegraph says how). With no graph built, build it first (`bravos graph build . --scip no-exec`, no tokens, a few minutes). On the Free plan, or when the graph is unavailable, read the route table, the IPC or command handlers and the auth code instead, and say "code graph unavailable; surface read from the code". Keep the list of entry points and the routes that answer unauthenticated callers: they are the leads for step 4.
19
+ 3. Scan. On the Team plan with bravos-cli present (`bravos doctor`): run `bravos sast run`, read its exit code as bravos-sast says (3 or 4 means incomplete, never clean), then `bravos sast candidates --json`. Keep the reachable findings, especially those not in the threat model yet. When SAST is unavailable (no licence, no bravos-cli, or no SAST report), say so in one line and carry on: the hunt does not wait for it.
20
+ 4. Record. Run bravos-annotate in deep mode with the `exploitable` playbook, taking as leads the entry points from step 2, the SAST findings from step 3, and the code that handles input from those entry points. Every finding that meets the evidence bar becomes a claim where the repository keeps annotations: `@exposes` with a severity and its reason, paired with `@mitigates` where a control exists or `@audit` where none does, the `@flows` the data takes, and a `@comment`. A doubt is an `@audit`, not a finding. Scope: the whole repository when `guardlink unannotated --json` lists 200 source files or fewer, split into batches of about 25 files run in parallel subagents (as bravos-campaign does, each told to follow bravos-annotate on its own files only); a larger repository gets the top of the attack surface (about 100 files, entry points and the code they reach first) in this session, then an offer of bravos-campaign for the rest.
21
+ 5. Gate it: `guardlink lint . --since <start> --json` until `summary.errors` is 0, then `guardlink validate .`. A violation on a line this session did not write is reported, not fixed.
22
+ 6. Rebuild the dashboard in the background (`bravos dashboard`, opened in the browser the first time this session, else `--no-open` with the path).
23
+ 7. Report from the threat model, not from memory: read `guardlink ci -f json` (or `guardlink parse .`) after recording, and give one table of the claims this hunt wrote, most severe first, with severity, the claim (asset and threat), `file:line`, where it came from (code graph, SAST or reading) and its state, which is untested until a test says otherwise. Then the coverage line (`<annotated> of <source> files annotated`, before → after) and `N recorded as claims`. List anything below the evidence bar separately, as the `@audit` questions it was recorded as.
24
+ 8. For committing Bravos's own files, follow the briefing's `Commits:` line; with no such line, ask once (commit now, or leave them for the person to review).
25
+ 9. End with one recommended next step: confirm the top three untested exposures now (bravos-prove on the recorded target, or bravos-env first to set one up, where the person types their own authorization), or the next files with bravos-campaign when the repository was larger than one hunt.
26
+
27
+ ## Never
28
+
29
+ - Report a threat that is not in the threat model after this hunt: every finding in the report is a claim this session recorded, or an `@audit` question it recorded.
30
+ - Answer a hunt from reading alone when the code graph or SAST is available, or call the code clean: the lint gate judges annotations, and an empty scan with exit 3 or 4 is incomplete.
31
+ - Write `@accepts`, `@entitles` or `@confirmed`: accepting a risk is a named person's decision, and confirming one needs a real test.
32
+ - Send any test traffic: a hunt reads and records; proving is bravos-prove, with the person's authorization.
33
+ - Commit or push without the person's go-ahead, or stash at all (another session can pop it).
34
+
35
+ ## Done when
36
+
37
+ - The code graph and SAST were used where available, and the report says plainly which were unavailable.
38
+ - Every finding in the report is a claim in the threat model (or an `@audit` question), `guardlink lint . --since <start>` reports 0 errors and `guardlink validate .` exits 0.
39
+ - The report table, the coverage line and the count of recorded claims were given, drawn from the model after recording.
40
+ - You rebuilt the dashboard from the code (`bravos dashboard`, run in the background): opened in their browser if it has not been opened this session, else with `--no-open` and its path given.
41
+ - You ended with one recommended next step.
42
+
43
+ ## What it leaves for the next skill
44
+
45
+ - The recorded claims, all untested, for bravos-templatize and bravos-prove; the files left over, for bravos-campaign.
46
+
47
+ ## Go deeper
48
+
49
+ - `{{SKILLS_ROOT}}/bravos-annotate/SKILL.md` — the evidence bar, placement and the lint gate.
50
+ - `{{SKILLS_ROOT}}/bravos-codegraph/SKILL.md` — asking the graph one bounded question at a time.
51
+ - `{{SKILLS_ROOT}}/bravos-sast/SKILL.md` — reading the scanner's exit code and candidates.
@@ -9,8 +9,8 @@
9
9
  # run `claude setup-token` once on your machine and store what it prints as the repo secret
10
10
  # CLAUDE_CODE_OAUTH_TOKEN. A repo that already set ANTHROPIC_API_KEY keeps working on that key;
11
11
  # delete that secret to run on your plan instead. Also enable Settings > Actions > General >
12
- # "Allow GitHub Actions to create and approve pull requests". Pin the actions to commit SHAs if
13
- # your organisation requires it.
12
+ # "Allow GitHub Actions to create and approve pull requests". Every action is pinned to a commit (its release in the comment beside it), and no checkout leaves the job's token on disk:
13
+ # the one step that pushes passes it to that push alone.
14
14
  # Team view, off by default: set the repository variable BRAVOS_THREAT_ISSUES to on (Settings > Secrets and
15
15
  # variables > Actions > Variables) and the threat-issues job opens one issue per critical or high threat still
16
16
  # untested BRAVOS_THREAT_ISSUES_DAYS days (default 2) after it was committed. A confirmed threat keeps its issue,
@@ -49,8 +49,10 @@ jobs:
49
49
  BRAVOS_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
50
50
  BRAVOS_SCAN_TARGET: ${{ vars.BRAVOS_SCAN_TARGET }}
51
51
  steps:
52
- - uses: actions/checkout@v4
53
- - uses: actions/setup-node@v4
52
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
53
+ with:
54
+ persist-credentials: false
55
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
54
56
  with:
55
57
  node-version: 22
56
58
  - name: Check current scheduled consent
@@ -136,9 +138,11 @@ jobs:
136
138
  outputs:
137
139
  open: ${{ steps.gate.outputs.open }}
138
140
  steps:
139
- - uses: actions/checkout@v4
141
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
142
+ with:
143
+ persist-credentials: false
140
144
 
141
- - uses: actions/setup-node@v4
145
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
142
146
  with:
143
147
  node-version: 22
144
148
 
@@ -166,11 +170,12 @@ jobs:
166
170
  run:
167
171
  shell: bash
168
172
  steps:
169
- - uses: actions/checkout@v4
173
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
170
174
  with:
175
+ persist-credentials: false
171
176
  fetch-depth: 0
172
177
 
173
- - uses: actions/setup-node@v4
178
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
174
179
  with:
175
180
  node-version: 22
176
181
 
@@ -195,7 +200,7 @@ jobs:
195
200
  echo "coverage=$(jq -r '.summary.coverage.percent // "unknown"' "$RUNNER_TEMP/ci-before.json")" >> "$GITHUB_OUTPUT"
196
201
 
197
202
  - name: Annotate the next slice
198
- uses: anthropics/claude-code-action@v1
203
+ uses: anthropics/claude-code-action@d1f58ad5e6f4d2b79547e63e37c2116064135896 # v1.0.277
199
204
  with:
200
205
  claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
201
206
  anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
@@ -241,9 +246,15 @@ jobs:
241
246
  LEDGER: ${{ needs.replay.outputs.ledger }}
242
247
  PROOF_SUMMARY: ${{ needs.replay.outputs.summary || 'No completed replay summary. Check the replay job.' }}
243
248
  GH_TOKEN: ${{ github.token }}
249
+ SERVER: ${{ github.server_url }}
244
250
  START: ${{ steps.start.outputs.sha }}
245
251
  BEFORE: ${{ steps.start.outputs.coverage }}
246
252
  run: |
253
+ # The checkout kept no token on disk, so the agent above never saw one. The two git calls that reach the
254
+ # remote get it here as a header, for that call alone.
255
+ basic=$(printf 'x-access-token:%s' "$GH_TOKEN" | base64 | tr -d '\n')
256
+ echo "::add-mask::$basic"
257
+ remote_auth="http.$SERVER/.extraheader=AUTHORIZATION: basic $basic"
247
258
  # Load the staging helper and verified ledger from trusted inputs after the agent exits.
248
259
  git show "$START:.bravos/hooks/lib/nightly-stage.mjs" > "$RUNNER_TEMP/nightly-stage.mjs"
249
260
  node "$RUNNER_TEMP/nightly-stage.mjs"
@@ -258,10 +269,10 @@ jobs:
258
269
  git config user.name "bravos-nightly[bot]"
259
270
  git config user.email "bravos-nightly@users.noreply.github.com"
260
271
  test "$(git rev-parse HEAD)" = "$START"
261
- test "$(git ls-remote --exit-code origin "refs/heads/$base" | cut -f1)" = "$START"
272
+ test "$(git -c "$remote_auth" ls-remote --exit-code origin "refs/heads/$base" | cut -f1)" = "$START"
262
273
  tree=$(git write-tree)
263
274
  commit=$(git commit-tree "$tree" -p "$START" -m "annotate: nightly coverage slice (${BEFORE}% -> ${after}%)")
264
- git -c core.hooksPath=/dev/null push origin "$commit:refs/heads/$branch"
275
+ git -c core.hooksPath=/dev/null -c "$remote_auth" push origin "$commit:refs/heads/$branch"
265
276
  {
266
277
  echo "Nightly coverage slice by bravos-annotate: ${BEFORE}% -> ${after}%."
267
278
  echo
@@ -290,13 +301,13 @@ jobs:
290
301
  run:
291
302
  shell: bash
292
303
  steps:
293
- - uses: actions/checkout@v4
304
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
294
305
  with:
295
306
  # guardlink blame reads when each claim was committed from the full history.
296
307
  fetch-depth: 0
297
308
  persist-credentials: false
298
309
 
299
- - uses: actions/setup-node@v4
310
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
300
311
  with:
301
312
  node-version: 22
302
313
 
@@ -6,8 +6,8 @@
6
6
  # The nightly is on the Team plan: add the repo secret BRAVOS_LICENCE (the token from
7
7
  # account.bugb.io/dashboard/license) so the agent's paid skills run; without it they say so and stop.
8
8
  # Needs the repo secret OPENAI_API_KEY, and Settings > Actions > General > "Allow GitHub
9
- # Actions to create and approve pull requests". Pin the actions to commit SHAs if your
10
- # organisation requires it.
9
+ # Actions to create and approve pull requests". Every action is pinned to a commit (its release in the comment beside it), and no checkout leaves the job's token on disk:
10
+ # the one step that pushes passes it to that push alone.
11
11
  # Team view, off by default: set the repository variable BRAVOS_THREAT_ISSUES to on (Settings > Secrets and
12
12
  # variables > Actions > Variables) and the threat-issues job opens one issue per critical or high threat still
13
13
  # untested BRAVOS_THREAT_ISSUES_DAYS days (default 2) after it was committed. A confirmed threat keeps its issue,
@@ -44,8 +44,10 @@ jobs:
44
44
  BRAVOS_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
45
45
  BRAVOS_SCAN_TARGET: ${{ vars.BRAVOS_SCAN_TARGET }}
46
46
  steps:
47
- - uses: actions/checkout@v4
48
- - uses: actions/setup-node@v4
47
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
48
+ with:
49
+ persist-credentials: false
50
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
49
51
  with:
50
52
  node-version: 22
51
53
  - name: Check current scheduled consent
@@ -131,9 +133,11 @@ jobs:
131
133
  outputs:
132
134
  open: ${{ steps.gate.outputs.open }}
133
135
  steps:
134
- - uses: actions/checkout@v4
136
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
137
+ with:
138
+ persist-credentials: false
135
139
 
136
- - uses: actions/setup-node@v4
140
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
137
141
  with:
138
142
  node-version: 22
139
143
 
@@ -161,11 +165,12 @@ jobs:
161
165
  run:
162
166
  shell: bash
163
167
  steps:
164
- - uses: actions/checkout@v4
168
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
165
169
  with:
170
+ persist-credentials: false
166
171
  fetch-depth: 0
167
172
 
168
- - uses: actions/setup-node@v4
173
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
169
174
  with:
170
175
  node-version: 22
171
176
 
@@ -190,7 +195,7 @@ jobs:
190
195
  echo "coverage=$(jq -r '.summary.coverage.percent // "unknown"' "$RUNNER_TEMP/ci-before.json")" >> "$GITHUB_OUTPUT"
191
196
 
192
197
  - name: Annotate the next slice
193
- uses: openai/codex-action@v1
198
+ uses: openai/codex-action@306c6a196a99dcc6582530c396a19d2672d5e9ec # v1.14
194
199
  with:
195
200
  openai-api-key: ${{ secrets.OPENAI_API_KEY }}
196
201
  permission-profile: ":workspace"
@@ -236,9 +241,15 @@ jobs:
236
241
  LEDGER: ${{ needs.replay.outputs.ledger }}
237
242
  PROOF_SUMMARY: ${{ needs.replay.outputs.summary || 'No completed replay summary. Check the replay job.' }}
238
243
  GH_TOKEN: ${{ github.token }}
244
+ SERVER: ${{ github.server_url }}
239
245
  START: ${{ steps.start.outputs.sha }}
240
246
  BEFORE: ${{ steps.start.outputs.coverage }}
241
247
  run: |
248
+ # The checkout kept no token on disk, so the agent above never saw one. The two git calls that reach the
249
+ # remote get it here as a header, for that call alone.
250
+ basic=$(printf 'x-access-token:%s' "$GH_TOKEN" | base64 | tr -d '\n')
251
+ echo "::add-mask::$basic"
252
+ remote_auth="http.$SERVER/.extraheader=AUTHORIZATION: basic $basic"
242
253
  # Load the staging helper and verified ledger from trusted inputs after the agent exits.
243
254
  git show "$START:.bravos/hooks/lib/nightly-stage.mjs" > "$RUNNER_TEMP/nightly-stage.mjs"
244
255
  node "$RUNNER_TEMP/nightly-stage.mjs"
@@ -253,10 +264,10 @@ jobs:
253
264
  git config user.name "bravos-nightly[bot]"
254
265
  git config user.email "bravos-nightly@users.noreply.github.com"
255
266
  test "$(git rev-parse HEAD)" = "$START"
256
- test "$(git ls-remote --exit-code origin "refs/heads/$base" | cut -f1)" = "$START"
267
+ test "$(git -c "$remote_auth" ls-remote --exit-code origin "refs/heads/$base" | cut -f1)" = "$START"
257
268
  tree=$(git write-tree)
258
269
  commit=$(git commit-tree "$tree" -p "$START" -m "annotate: nightly coverage slice (${BEFORE}% -> ${after}%)")
259
- git -c core.hooksPath=/dev/null push origin "$commit:refs/heads/$branch"
270
+ git -c core.hooksPath=/dev/null -c "$remote_auth" push origin "$commit:refs/heads/$branch"
260
271
  {
261
272
  echo "Nightly coverage slice by bravos-annotate: ${BEFORE}% -> ${after}%."
262
273
  echo
@@ -285,13 +296,13 @@ jobs:
285
296
  run:
286
297
  shell: bash
287
298
  steps:
288
- - uses: actions/checkout@v4
299
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
289
300
  with:
290
301
  # guardlink blame reads when each claim was committed from the full history.
291
302
  fetch-depth: 0
292
303
  persist-credentials: false
293
304
 
294
- - uses: actions/setup-node@v4
305
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
295
306
  with:
296
307
  node-version: 22
297
308
 
@@ -43,9 +43,11 @@ jobs:
43
43
  run:
44
44
  shell: bash
45
45
  steps:
46
- - uses: actions/checkout@v4
46
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
47
+ with:
48
+ persist-credentials: false
47
49
 
48
- - uses: actions/setup-node@v4
50
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
49
51
  with:
50
52
  node-version: 22
51
53
 
@@ -116,13 +118,13 @@ jobs:
116
118
  run:
117
119
  shell: bash
118
120
  steps:
119
- - uses: actions/checkout@v4
121
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
120
122
  with:
121
123
  # guardlink blame reads when each claim was committed from the full history.
122
124
  fetch-depth: 0
123
125
  persist-credentials: false
124
126
 
125
- - uses: actions/setup-node@v4
127
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
126
128
  with:
127
129
  node-version: 22
128
130
 
@@ -1,8 +1,9 @@
1
1
  # bravos:generated — written by `bravos init --ci`; `bravos sync --ci` refreshes it while this line stays.
2
2
  # The bravos-ship gate as a pull-request check, the same rulings as the opt-in pre-PR hook.
3
3
  # Deterministic: it runs guardlink only, spends no model, and needs no secret. A gate input that
4
- # fails or does not parse fails the job as "unknown", never passes. Pin the actions below to
5
- # commit SHAs if your organisation requires it.
4
+ # fails or does not parse fails the job as "unknown", never passes. Every action is pinned to a
5
+ # commit (its release in the comment beside it), the checkout keeps no token on disk, and guardlink
6
+ # is the version bravos pins (.bravos/hooks/lib/proof-tool-pins.json).
6
7
  name: bravos security gate
7
8
 
8
9
  on:
@@ -24,16 +25,18 @@ jobs:
24
25
  run:
25
26
  shell: bash
26
27
  steps:
27
- - uses: actions/checkout@v4
28
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
28
29
  with:
30
+ persist-credentials: false
29
31
  fetch-depth: 0
30
32
 
31
- - uses: actions/setup-node@v4
33
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
32
34
  with:
33
35
  node-version: 22
34
36
 
37
+ # The guardlink version bravos pins, installed by the same script as the nightlies, never whatever npm calls latest.
35
38
  - name: Install guardlink
36
- run: npm install -g guardlink
39
+ run: bash .bravos/hooks/lib/nightly-tools.sh annotate
37
40
 
38
41
  - name: Merge base
39
42
  id: base
@@ -292,7 +295,7 @@ jobs:
292
295
  # A fork's pull_request token cannot write security events; skip the upload there.
293
296
  - name: Upload SARIF
294
297
  if: github.event.pull_request.head.repo.full_name == github.repository
295
- uses: github/codeql-action/upload-sarif@v3
298
+ uses: github/codeql-action/upload-sarif@9418214df1f2c4b8128c770156c409013b07d6b9 # v3.39.3
296
299
  with:
297
300
  sarif_file: guardlink.sarif
298
301
  category: guardlink
@@ -25,11 +25,12 @@ jobs:
25
25
  permissions:
26
26
  contents: read
27
27
  steps:
28
- - uses: actions/checkout@v4
28
+ - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
29
29
 
30
- - uses: actions/setup-node@v4
30
+ - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
31
31
  with:
32
32
  node-version: 22
33
33
 
34
+ # The guardlink version bravos pins, installed by the same script as the nightlies.
34
35
  - name: Install guardlink
35
- run: npm install -g guardlink
36
+ run: bash .bravos/hooks/lib/nightly-tools.sh annotate