From 3aeccc10519d46a95b0d36181d1260a4f29ae304 Mon Sep 17 00:00:00 2001 From: Sofie Wisse Date: Thu, 26 Oct 2023 10:02:03 +0200 Subject: [PATCH] use PAT to authenticate to package feed --- .github/workflows/build.yml | 6 +----- VstsService/VstsService.csproj | 1 - 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index df8cf6dc..9934a4b9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -34,9 +34,5 @@ jobs: run: | export VERSION=$(git rev-list --count HEAD) dotnet pack -c release -o out -p:PackageVersion=1.0.0.$VERSION - - name: dotnet nuget add source - run: dotnet nuget add source --username wisses --password ${{secrets.GITHUB_TOKEN}} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/azure-devops-compliance/index.json" - name: dotnet nuget push - run: dotnet nuget push ./out/*.nupkg --skip-duplicate --no-symbols true --api-key $key - env: - key: ${{secrets.GITHUB_TOKEN}} \ No newline at end of file + run: dotnet nuget push ./out/*.nupkg --skip-duplicate --no-symbols true --api-key ${{secrets.PAT}} \ No newline at end of file diff --git a/VstsService/VstsService.csproj b/VstsService/VstsService.csproj index 44e08eb1..4c38e199 100644 --- a/VstsService/VstsService.csproj +++ b/VstsService/VstsService.csproj @@ -25,7 +25,6 @@ Handrolled client for Azure DevOps REST API pipellines; build; release; azure devops; compliance false - Nuget.Workflow git https://github.com/azure-devops-compliance/rest-service SecurePipelineScan.VstsService