From ce13343a76b574ac0bf11af27f0a60e6092d2b84 Mon Sep 17 00:00:00 2001 From: Matthias Kuhn Date: Mon, 12 Feb 2024 12:02:53 +0100 Subject: [PATCH] Inject token --- .github/actions/setup-vcpkg/action.yml | 8 +++++++- .github/workflows/windows.yml | 2 ++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/actions/setup-vcpkg/action.yml b/.github/actions/setup-vcpkg/action.yml index c26aaa6..fe43ebc 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..964f16e 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: + token: ${{ secrets.GITHUB_TOKEN }} - name: 🌋 Build run: |