Commit 528a3af
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 a variable
using `az keyvault secret show` instead of downloading to a file
- Sets the WINGET_CREATE_GITHUB_TOKEN environment variable
- 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 eaa273d commit 528a3af
1 file changed
+7
-26
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
31 | | - | |
| 30 | + | |
32 | 31 | | |
33 | 32 | | |
34 | 33 | | |
| |||
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
94 | 78 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
99 | 82 | | |
100 | 83 | | |
101 | | - | |
102 | | - | |
0 commit comments