Skip to content

Commit eafc759

Browse files
committed
Use gitithub token for packages access (for vcpkg caching) in stead of a special secret. Related to #257.
1 parent d2ed08b commit eafc759

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
# - master
1414
workflow_dispatch:
1515

16+
permissions:
17+
packages: write
18+
1619
jobs:
1720
build-windows:
1821
name: build-windows
@@ -59,9 +62,9 @@ jobs:
5962
-StorePasswordInClearText `
6063
-Name GitHubPackages `
6164
-UserName "${{ env.USERNAME }}" `
62-
-Password "${{ secrets.GH_PACKAGES_TOKEN }}"
65+
-Password "${{ github.token }}"
6366
.$(${{ env.VCPKG_EXE }} fetch nuget) `
64-
setapikey "${{ secrets.GH_PACKAGES_TOKEN }}" `
67+
setapikey "${{ github.token }}" `
6568
-Source "${{ env.FEED_URL }}"
6669
6770
- name: Install NSIS

0 commit comments

Comments
 (0)