Fix cve-watch false positives from an empty local tag list #5
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/cve-watch-empty-local"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
cve-watch filed issue #4 ("Upstream linux-hardened tag v7.0.10-hardened1 available") — a false positive: that's the same upstream patch we already ship as
v7.0.10-hardened1.5. The tell was the blank "Local latest:" line.Root cause: the
compare upstream vs localstep's checkout usedfetch-tags: trueon a shallow clone, which does not fetch tags on this Forgejo act runner.git tag --listreturned nothing →localwas empty →upstream != ""was always true, so every run looked like a new release. (This — not a real upstream release — is what fired the earlier runs as well.)Fix
fetch-depth: 0(matchesbuild-kernel.yml, which reads tags reliably); a full clone fetches all tags.upstream/local_newest/local_core, and guard — if either side is empty, setnew=falseinstead of filing. So even if a checkout ever fails to provide tags again, it cannot spam a false "new upstream" issue for a tag we already ship.Verified locally against the real tag set:
upstream=v7.0.10-hardened1vslocal_newest=v7.0.10-hardened1.5(corev7.0.10-hardened1) →new=false; a genuinehardened2/7.0.11→new=true; emptylocal→new=false.Follow-up: issue #4 can be closed as a false positive.
🤖 Generated with Claude Code