Commit 1a84bae
release-winget: use WINGET_CREATE_GITHUB_TOKEN environment variable
According to the winget-create documentation, for CI/CD scenarios it is
recommended to use the WINGET_CREATE_GITHUB_TOKEN environment variable
to pass the token to wingetcreate.exe rather than the -t command-line
flag.
The concern is that command-line arguments might be logged in process
listings, whereas environment variables are more secure as they are not
typically exposed in such listings.
This change:
- Retrieves the token from Azure Key Vault directly into the
WINGET_CREATE_GITHUB_TOKEN environment variable using
`az keyvault secret show` instead of downloading to a file
- Removes the -t flag from the wingetcreate.exe submit command
- Removes the need for the token.txt file
Co-authored-by: dscho <[email protected]>
1 parent 528a3af commit 1a84bae
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments