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");