Skip to content

Add OpenSSF Scorecard badge hosts to trusted image domains - #11062

Open
Laurianti wants to merge 1 commit into
NuGet:devfrom
Laurianti:scorecard-badges-9749
Open

Laurianti wants to merge 1 commit into
NuGet:devfrom
Laurianti:scorecard-badges-9749

Conversation

@Laurianti

@Laurianti Laurianti commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Allow OpenSSF Scorecard badges in package READMEs.

Tests, after .\build.ps1 -SkipCommon -SkipJobs -SkipArtifacts:

  • A new theory in ImageDomainValidatorFacts reads the real Trusted-Image-Domains.json, embedded in NuGetGallery.Facts like _ValidationIssue.cshtml, so the entries themselves are covered. The existing validator cases mock the domain check. Without the two entries, both of its cases fail.
  • ImageDomainValidatorFacts: 17 passed, 0 failed.
  • All of NuGetGallery.Facts: 11716 passed, 0 failed, 2 skipped.

Closes #9749

@Laurianti
Laurianti requested a review from a team as a code owner October 26, 2026 09:27
Adds api.scorecard.dev and api.securityscorecards.dev so that Scorecard badges render in package READMEs. A new test reads the shipped Trusted-Image-Domains.json and checks that both hosts are trusted.
@Laurianti
Laurianti force-pushed the scorecard-badges-9749 branch from 4fd9858 to 7cc9ae5 Compare October 26, 2026 21:32
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