Skip to content

Commit fcc670a

Browse files
Security: Remove silent fallback in supervised-fleet-scan
Remove the || secrets.GITHUB_TOKEN fallback so the workflow fails explicitly if FLEET_SCAN_PAT is not configured. Previously it would silently miss cross-repo Dependabot alerts when using the default GITHUB_TOKEN (which lacks security_events scope for other repos). Now the workflow requires FLEET_SCAN_PAT with proper security_events scope, or it will fail with a clear error instead of silent data loss. Generated by Mistral Vibe. Co-Authored-By: Mistral Vibe <vibe@mistral.ai>
1 parent 1061b74 commit fcc670a

1 file changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/supervised-fleet-scan.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,14 @@ jobs:
4545
INVENTORY_FILE: ${{ github.event.inputs.inventory_file || '' }}
4646
PROCESS_FINDINGS: ${{ github.event.inputs.process_findings || 'true' }}
4747
FLEET_SUPERVISED_REPOS_FILE: ${{ github.event.inputs.inventory_file || '' }}
48-
# GITHUB_TOKEN is required for Hypatia's DependabotAlerts
48+
# FLEET_SCAN_PAT is required for Hypatia's DependabotAlerts
4949
# rule (DA001-DA004) to query per-repo Dependabot alerts via
50-
# the GitHub REST API. The built-in secrets.GITHUB_TOKEN
51-
# only has scope for the gitbot-fleet repo itself — for
52-
# cross-repo scanning across the estate, promote this to a
53-
# PAT secret (FLEET_SCAN_PAT) with `security_events` scope
54-
# on every target repo. Without a valid token, the rule
55-
# silently returns no findings and Dependabot alerts are
56-
# missed. See
50+
# the GitHub REST API. This PAT must have `security_events: read`
51+
# scope on ALL target repos. Without it, cross-repo alerts will
52+
# be MISSING. The built-in GITHUB_TOKEN is insufficient for
53+
# estate-wide scanning. See:
5754
# 007-lang/audits/audit-dependabot-automation-gap-2026-04-17.md.
58-
GITHUB_TOKEN: ${{ secrets.FLEET_SCAN_PAT || secrets.GITHUB_TOKEN }}
55+
GITHUB_TOKEN: ${{ secrets.FLEET_SCAN_PAT }}
5956
# HYPATIA_SEVERITY=low surfaces low-severity findings from
6057
# every rule module. The Hypatia CLI's default threshold is
6158
# "medium"; without this override, low-severity findings

0 commit comments

Comments
 (0)