Skip to content

✨ Add support for Winget package manager integration - #5101

Closed
andy778 wants to merge 1 commit into
ossf:mainfrom
andy778:feature/winget-package-manager
Closed

✨ Add support for Winget package manager integration#5101
andy778 wants to merge 1 commit into
ossf:mainfrom
andy778:feature/winget-package-manager

Conversation

@andy778

@andy778 andy778 commented Jun 21, 2026

Copy link
Copy Markdown

What kind of change does this PR introduce?

New feature — adds support for the Windows Package Manager (winget) as an input source.

What is the current behavior?

Users who want to assess a winget package must manually look up the source repository and pass it via --repo. There is no --winget flag equivalent to the existing --npm, --pypi, --rubygems, and --nuget flags.

What is the new behavior (if this is a feature change)?
A new --winget flag accepts a winget package identifier and resolves the source repository automatically by reading the package manifest from microsoft/winget-pkgs, then runs Scorecard against it.

scorecard --winget="Notepad++.Notepad++"

What is the new behavior (if this is a feature change)?

  • Tests for the changes have been added (for bug fixes/features)

Which issue(s) this PR fixes

Fixes #5100

Special notes for your reviewer

Does this PR introduce a user-facing change?

Add --winget flag to resolve and score a package by its winget package identifier (e.g. scorecard --winget="Notepad++.Notepad++").

Add `--winget` flag to run Scorecard against a package by its winget identifier (e.g. `--winget=Notepad++.Notepad++`).

@andy778
andy778 requested a review from a team as a code owner June 21, 2026 10:55
@andy778
andy778 requested review from justaugustus and spencerschrock and removed request for a team June 21, 2026 10:55
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 21, 2026
Signed-off-by: Andy B <andy778@users.noreply.github.com>
@andy778
andy778 force-pushed the feature/winget-package-manager branch from 767a170 to 8e5b1a4 Compare June 21, 2026 11:10
@gr2m

gr2m commented Jun 22, 2026

Copy link
Copy Markdown

Fixes #5096

This PR is not closing #5096

@andy778

andy778 commented Jun 22, 2026

Copy link
Copy Markdown
Author

Yes typo from my side should be #5100

Comment thread cmd/package_managers.go

// Gets the GitHub repository URL for the winget package.
// Reads manifests directly from the microsoft/winget-pkgs GitHub repository.
// Note: https://api.winget.run/v2 was considered but appears unmaintained

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this is not an official index either FWIW.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I refactor this PR, or is there any interest in this and I should drop it?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was just stating that you found that winget.run index unmaintained, but this is also not official. You are using the git repo at https://github.com/microsoft/winget-pkgs which is the way AFAIK

@github-actions

Copy link
Copy Markdown

This pull request has been marked stale because it has been open for 10 days with no activity

@pombredanne

Copy link
Copy Markdown

@andy778 can you reopen?

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

Labels

size:L This PR changes 100-499 lines, ignoring generated files. Stale

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Feature: Add winget package manager support

3 participants