Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Pseudo-version audit: per-dependency integrity signal#100

Open
unidoc-alip wants to merge 1 commit into
developmentunidoc/unisupply:developmentfrom
feat/pseudo-version-auditunidoc/unisupply:feat/pseudo-version-auditCopy head branch name to clipboard
Open

Pseudo-version audit: per-dependency integrity signal#100
unidoc-alip wants to merge 1 commit into
developmentunidoc/unisupply:developmentfrom
feat/pseudo-version-auditunidoc/unisupply:feat/pseudo-version-auditCopy head branch name to clipboard

Conversation

@unidoc-alip

@unidoc-alip unidoc-alip commented Jul 21, 2026

Copy link
Copy Markdown
Collaborator

JIRA: https://unidoc.atlassian.net/browse/US-1649

Summary

  • Flags every resolved dependency pinned to a pseudo-version go.mod version (golang.org/x/mod/module.IsPseudoVersion), distinct from the AI-generated-code scanner's zero-tagged-releases-ever heuristic
  • Direct, non-test-only pins score MEDIUM (+4); indirect LOW (+2); confirmed test-only pins render INFO with no score impact — never drives the project headline into HIGH on its own
  • Surfaced in text/JSON/PDF reports and as a new forbid_pseudo_versions policy rule (enabled in the strict preset), exempting confirmed test-only dependencies

Test plan

  • just fmt && go vet ./... && just lint && go test ./... clean
  • Self-scan flags unidoc/garabic, google/go-cmdtest, golang.org/x/telemetry as pseudo-version findings; headline stays sub-HIGH
  • Synthetic fixture with a direct pseudo-version dependency confirmed the MEDIUM severity path end-to-end (text report, JSON, and --policy-preset strict)
  • PDF report generation verified to complete successfully

…y signal

Flags every resolved dependency pinned to a pseudo-version go.mod version,
distinct from the AI-generated-code scanner's zero-tagged-releases-ever
heuristic. Fully offline via golang.org/x/mod/module.IsPseudoVersion.

* Direct, non-test-only pins score MEDIUM (+4); indirect LOW (+2); confirmed
  test-only pins render INFO with no score impact
* Never drives the project headline into HIGH on its own — per-dependency
  risk factor only, kept out of the integrity_floor candidate
* Surfaced in text/JSON/PDF reports and as a new forbid_pseudo_versions
  policy rule (enabled in the strict preset), exempting confirmed test-only
  dependencies
@unidoc-alip
unidoc-alip requested a review from a team as a code owner July 21, 2026 19:57
@github-actions

Copy link
Copy Markdown

Code Coverage

Total: 75.4%

Per-package breakdown (low → high)
Package Coverage
github.com/unidoc/unisupply/pkg/report 41.0%
github.com/unidoc/unisupply/pkg/resolver 57.1%
github.com/unidoc/unisupply/pkg/scanner 87.8%
github.com/unidoc/unisupply/pkg/progress 88.2%
github.com/unidoc/unisupply/pkg/scorer 92.9%
github.com/unidoc/unisupply/pkg/policy 97.0%
github.com/unidoc/unisupply/pkg/parser 98.0%

Generated for commit d7b8094.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.