microsoft / microsoft/winget-cli

Output a tip if resource requires elevation but doesn't specify `securityContext`

Open
#5,358 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Area-Output Command-Configure Issue-Feature
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Description of the new feature / enhancement

WinGet could detect at runtime if a resource asks for elevation. If securityContext: elevated wasn't specified in the directives of the resource, WinGet could output a helpful message like: "The resource required elevated permissions. Consider adding securityContext: elevated in the directives of the resource. For more information, see aka.ms/someUrl"

Proposed technical implementation details

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing where WinGet evaluates resource elevation at runtime and where resource directives, including securityContext, are processed. Confirm how an elevated requirement is detected when securityContext: elevated is absent. Done means the CLI emits a helpful tip with the relevant documentation link in that case, without emitting it when the directive is already specified.

Written by the indexing model from the issue text.

Assessment

Tech stack
cpp
Domain
cli, security
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.