diff --git a/.github/actions/setup-vcpkg/action.yml b/.github/actions/setup-vcpkg/action.yml index c26aaa6..56c6556 100644 --- a/.github/actions/setup-vcpkg/action.yml +++ b/.github/actions/setup-vcpkg/action.yml @@ -7,6 +7,12 @@ description: Initialize vcpkg # required: false # default: latest # type: string +inputs: + github_token: + description: Token to use for nuget + required: false + default: '' + type: string runs: using: composite @@ -27,4 +33,4 @@ runs: iex (iwr -useb https://aka.ms/vcpkg-init.ps1) vcpkg fetch nuget - C:\ProgramData\Chocolatey\bin\nuget.exe sources add -Name ghpkg -Source https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json -UserName $GITHUB_ACTOR -Password ${{ secrets.GITHUB_TOKEN }} -StorePasswordInClearText + C:\ProgramData\Chocolatey\bin\nuget.exe sources add -Name ghpkg -Source https://nuget.pkg.github.com/$PKG_SOURCE_USER/index.json -UserName $GITHUB_ACTOR -Password ${{ inputs.github_token }} -StorePasswordInClearText diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 03f1c82..2acc9cc 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -31,6 +31,8 @@ jobs: - name: Setup vcpkg uses: ./.github/actions/setup-vcpkg + with: + github_token: ${{ secrets.GITHUB_TOKEN }} - name: 🌋 Build run: |