Skip to content

Commit

Permalink
use PAT to authenticate to package feed
Browse files Browse the repository at this point in the history
  • Loading branch information
wisses committed Oct 26, 2023
1 parent 519d35e commit 3aeccc1
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
run: dotnet nuget push ./out/*.nupkg --skip-duplicate --no-symbols true --api-key ${{secrets.PAT}}
1 change: 0 additions & 1 deletion VstsService/VstsService.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
<Description>Handrolled client for Azure DevOps REST API</Description>
<PackageTags>pipellines; build; release; azure devops; compliance</PackageTags>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageId>Nuget.Workflow</PackageId>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/azure-devops-compliance/rest-service</RepositoryUrl>
<RootNamespace>SecurePipelineScan.VstsService</RootNamespace>
Expand Down

0 comments on commit 3aeccc1

Please sign in to comment.