From aa08e4192e132394140d86c3ef7cc0d0c6d283be Mon Sep 17 00:00:00 2001 From: Adam Hathcock Date: Tue, 14 May 2024 13:49:46 +0100 Subject: [PATCH] use PAT? --- .github/workflows/dotnet.yml | 2 +- Build/Github.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index b07bc5bf72..76da6dfa25 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -21,7 +21,7 @@ jobs: - name: Make envfile uses: SpicyPizza/create-envfile@v2.0 with: - envkey_TOKEN: ${{ secrets.GITHUB_TOKEN }} + envkey_TOKEN: ${{ secrets.ADAM_BUILD_TOKEN }} - name: Build Installers env: RUN_ID: ${{ github.run_id }} diff --git a/Build/Github.cs b/Build/Github.cs index 73bafe4438..cb1902b918 100644 --- a/Build/Github.cs +++ b/Build/Github.cs @@ -21,7 +21,7 @@ public static async Task BuildInstallers(string token, string runId) var request = new HttpRequestMessage() { RequestUri = new Uri("https://api.github.com/repos/specklesystems/connector-installers/dispatches"), - Headers = { Authorization = new AuthenticationHeaderValue("Token", token) }, + Headers = { Authorization = new AuthenticationHeaderValue("Bearer", token) }, Content = content }; request.Headers.Add("X-GitHub-Api-Version", "2022-11-28");