Commit 3527988
feat(assail): downgrade flake.lock-only SupplyChain finding to Severity::Low
When `flake.nix` declares inputs without inline narHash, without rev
pinning, and without a sibling `flake.lock`, the standard remediation
is a single `nix flake update` invocation that generates the lockfile
with narHash for every transitive input.
Because the fix is trivial and mechanical, this finding does not
belong in the same severity tier as e.g. an unsigned binary fetch or
a tamperable URL. Downgrade from High to Low and embed the fix
command directly in the description.
The detector still triggers — the finding is real and worth noting —
but it no longer dominates noise tiers in scan reports. Estate
context: the Nix-mirror campaign closure (standards#149, hypatia#289)
confirmed flake.lock generation is the canonical mechanical fix.
Regression tests verify (a) the Low severity, (b) the suggestion
text, (c) that flakes with narHash or rev pinning remain
finding-free.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 7935204 commit 3527988
1 file changed
Lines changed: 80 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4285 | 4285 | | |
4286 | 4286 | | |
4287 | 4287 | | |
| 4288 | + | |
| 4289 | + | |
| 4290 | + | |
| 4291 | + | |
| 4292 | + | |
| 4293 | + | |
4288 | 4294 | | |
4289 | 4295 | | |
4290 | 4296 | | |
4291 | 4297 | | |
4292 | 4298 | | |
4293 | | - | |
| 4299 | + | |
4294 | 4300 | | |
4295 | 4301 | | |
4296 | | - | |
| 4302 | + | |
| 4303 | + | |
4297 | 4304 | | |
4298 | 4305 | | |
4299 | 4306 | | |
| |||
7763 | 7770 | | |
7764 | 7771 | | |
7765 | 7772 | | |
| 7773 | + | |
| 7774 | + | |
| 7775 | + | |
| 7776 | + | |
| 7777 | + | |
| 7778 | + | |
| 7779 | + | |
| 7780 | + | |
| 7781 | + | |
| 7782 | + | |
| 7783 | + | |
| 7784 | + | |
| 7785 | + | |
| 7786 | + | |
| 7787 | + | |
| 7788 | + | |
| 7789 | + | |
| 7790 | + | |
| 7791 | + | |
| 7792 | + | |
| 7793 | + | |
| 7794 | + | |
| 7795 | + | |
| 7796 | + | |
| 7797 | + | |
| 7798 | + | |
| 7799 | + | |
| 7800 | + | |
| 7801 | + | |
| 7802 | + | |
| 7803 | + | |
| 7804 | + | |
| 7805 | + | |
| 7806 | + | |
| 7807 | + | |
| 7808 | + | |
| 7809 | + | |
| 7810 | + | |
| 7811 | + | |
| 7812 | + | |
| 7813 | + | |
| 7814 | + | |
| 7815 | + | |
| 7816 | + | |
| 7817 | + | |
| 7818 | + | |
| 7819 | + | |
| 7820 | + | |
| 7821 | + | |
| 7822 | + | |
| 7823 | + | |
| 7824 | + | |
| 7825 | + | |
| 7826 | + | |
| 7827 | + | |
| 7828 | + | |
| 7829 | + | |
| 7830 | + | |
| 7831 | + | |
| 7832 | + | |
| 7833 | + | |
| 7834 | + | |
| 7835 | + | |
| 7836 | + | |
| 7837 | + | |
| 7838 | + | |
| 7839 | + | |
| 7840 | + | |
| 7841 | + | |
| 7842 | + | |
| 7843 | + | |
7766 | 7844 | | |
0 commit comments