Repository navigation
refactor!: remove RPM generation; add govulncheck to CI (ADR-0016) - #78
Merged
Merged
Conversation
Remove the rpm package type, internal/generator/rpm/, the RPM-only generate flags (--distro, --version, --gpg-key-url) and config fields, the RPM fixtures and tests, and rpm from the publish-to-r2 action. go-rpmutils (and DataDog/zstd, xi2/xz) leave the module graph, which ends GO-2026-5932: x/crypto/openpgp was reachable at init through go-rpmutils, and the advisory has no fix. The scanner now logs a warning for a skipped .rpm file. Add a pinned govulncheck (v1.9.0) step to the test job. Bump golang.org/x/crypto to v0.58.0, klauspost/compress to v1.18.7 and x/sys to v0.49.0; the go directive becomes 1.26.0. New ADR-0016 (Proposed); ADR-0004, ADR-0005 and ADR-0010 are superseded, and the RPM parts of ADR-0007, 0008, 0009 and 0011. BREAKING CHANGE: repogen no longer detects or generates RPM repositories; the --distro, --version and --gpg-key-url flags and the publish-to-r2 inputs distro-variant and version are removed.
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Author
Cross-review: passed
|
bketelsen
approved these changes
Oct 24, 2026
bketelsen
pushed a commit
that referenced
this pull request
Oct 24, 2026
…ction (#79) Set ADR-0016 to Accepted and update its index entry. Replace the README release summary (4 platforms, native packages, repository archive) with the current GoReleaser contract from RELEASING.md: two Linux binaries and SHA256SUMS. Found by the cross-review of #78. Co-authored-by: frostyard-machines <[email protected]>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Removes RPM generation from repogen, to end GO-2026-5932 (
golang.org/x/crypto/openpgp, unmaintained and unsafe by design, no fixed version). It was reachable at init:rpm.init→rpmutils.init(github.com/sassoftware/go-rpmutilsv0.3.0). Brian chose option C (T156b, 2026-10-24).rpmtype is gone:.rpmfiles are no longer detected. The scanner skips them and logs a warning that names ADR-0016. A directory with only.rpmfiles gives "No packages found" (exit 0).generateflags--distro,--version,--gpg-key-urlare removed (unknown flag).publish-to-r2:package-type: rpmfails validation; inputsdistro-variantandversionare removed.go run golang.org/x/vuln/cmd/[email protected] ./...in thetestjob (same form as intuneme and nsl).go-rpmutils,DataDog/zstd,xi2/xzremoved.golang.org/x/cryptov0.41.0 → v0.58.0 (latest; highest listed fix is v0.56.0),klauspost/compressv1.17.11 → v1.18.7 (GO-2026-5841),x/sys→ v0.49.0. x/crypto v0.58.0 requiresgo 1.26.0, so thegodirective moves from 1.24 to 1.26.0 (toolchain go1.26.10unchanged).x/cryptostays required throughProtonMail/go-crypto; no imported package usesopenpgp).internal/scanner/detector_test.gopins that RPM input is unknown.Evidence: no frostyard consumer uses RPM generation
Scan on 2026-10-24: shallow clones of the default branches of all 72
frostyardrepositories (66 public, 6 private; archived included), grep forrepogenand RPM terms, plusgh search codeand the repogen forks..github/workflows/build.yml:244usespublish-to-r2@ea8cd1f…(v0.4.1,repogen-version: v0.4.1) withpackage-type: sysext. Unaffected (SHA-pinned, sysext).deb: snowcat-cockpit, gchlog, nbc, igloo-old.dists/stableimport source andREPOGEN_GPG_KEYhistory. No RPM..rpmfiles that exist (updex, intuneme, archived snowcat-cockpit) come from GoReleaser nfpm and go to GitHub release assets; none is fed to repogen.https://repository.frostyard.org/lists onlyext/;/rpm/,/rpm/repodata/repomd.xml,/repodata/repomd.xmlreturn 404.bketelsen/*notes and a dataset list; the only fork isbketelsen/repogen.Checks (local)
make build,make fmt(no diff), golangci-lint v2.3.1 withGOTOOLCHAIN=go1.26.10(0 issues),go test -short -race ./...,make test-integration,node scripts/check-docs.mjs(24 docs, 230 links, 9 symlinks), govulncheck v1.9.0 (exit 0).Notes for Brian