Skip to content

Commit 60b17bb

Browse files
authored
Remove use of --token for WinGet release
1 parent b5316d2 commit 60b17bb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

.github/workflows/release.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -867,15 +867,16 @@ jobs:
867867
.\wingetcreate.exe update Coder.Coder `
868868
--submit `
869869
--version "${version}" `
870-
--urls "${amd64_installer_url}" "${amd64_zip_url}" "${arm64_zip_url}" `
871-
--token "$env:WINGET_GH_TOKEN"
870+
--urls "${amd64_installer_url}" "${amd64_zip_url}" "${arm64_zip_url}"
872871
873872
env:
874873
# For gh CLI:
875874
GH_TOKEN: ${{ github.token }}
876875
# For wingetcreate. We need a real token since we're pushing a commit
877876
# to GitHub and then making a PR in a different repo.
878-
WINGET_GH_TOKEN: ${{ secrets.CDRCI_GITHUB_TOKEN }}
877+
# winget-create will read the following environment variable to access the GitHub token needed for submitting a PR
878+
# See https://aka.ms/winget-create-token
879+
WINGET_CREATE_GITHUB_TOKEN: ${{ secrets.CDRCI_GITHUB_TOKEN }}
879880

880881
- name: Comment on PR
881882
run: |

0 commit comments

Comments
 (0)