winget-cli
winget-cli copied to clipboard
URI validation for winget cli commands
Description
flowchart TD
%%{init:{'flowchart':{"defaultRenderer": "elk"}}}%%
A[winget cli] --> B
B{is configuration?} --> |yes| C[Get URI Zone]
B --> |no| D{Package catalog trusted?}
D --> |no| C
D --> |yes| E(Resume operation)
C --> F{Zone blocked by policy?}
F -->|yes| G(APPINSTALLER_CLI_ERROR_BLOCKED_BY_POLICY)
F --> |no| H{Zone Internet or Untrusted?}
H --> |yes| I{SmartScreen blocked by policy?}
H --> |no| E
I --> |no| J{Blocked by SmartScreen?}
I --> |yes| E
J --> |yes| K(APPINSTALLER_CLI_ERROR_BLOCKED_BY_REPUTATION_SERVICE)
J --> |no| E
style G fill:red,stroke:darkred,color:white
style K fill:red,stroke:darkred,color:white
style E fill:green,stroke:darkgreen,color:white
TODO
- [ ] Finalize strings
Follow ups
- Add MotW HostUrl validation (TODO link to issue)