Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Publishing of package to GitHub Packages repository fails #706

Closed
pascalberger opened this issue Oct 6, 2020 · 2 comments
Closed

Publishing of package to GitHub Packages repository fails #706

pascalberger opened this issue Oct 6, 2020 · 2 comments
Assignees
Labels
Milestone

Comments

@pascalberger
Copy link
Member

pascalberger commented Oct 6, 2020

Since recently publishing of packages to GitHub Packages repository in the cake-contrib org fails with the following error:

https://ci.appveyor.com/project/cakecontrib/cake-issues-pullrequests-githubactions/builds/35591106#L364

Adding NuGet source with user/pass...
Package source with Name: PreReleaseSource_GPR added successfully.
Pushing C:/projects/cake-issues-pullrequests-githubactions/BuildArtifacts/Packages/NuGet/Cake.Issues.PullRequests.GitHubActions.0.10.0-alpha0092.nupkg to PreRelease Source with Url https://nuget.pkg.github.com/cake-contrib/index.json...
Pushing Cake.Issues.PullRequests.GitHubActions.0.10.0-alpha0092.nupkg to 'https://nuget.pkg.github.com/cake-contrib'...
  PUT https://nuget.pkg.github.com/cake-contrib/
WARNING: Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.
MSBuild auto-detection: using msbuild version '16.7.0.37604' from 'C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Current\Bin'.
Using credentials from config. UserName: cake-contrib
WARNING: Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.
WARNING: The plugin credential provider could not acquire credentials. Authentication may require manual action. Consider re-running the command with --interactive for `dotnet`, /p:NuGetInteractive="true" for MSBuild or removing the -NonInteractive switch for `NuGet`
  Unauthorized https://nuget.pkg.github.com/cake-contrib/ 406ms
Cake.exe : Response status code does not indicate success: 401 (Unauthorized).
At line:1 char:1
AdmiringWorm added a commit to cake-contrib/Cake.Warp that referenced this issue Oct 7, 2020
Currently trying to push nuget packages to the
github package repository is failing with an
unauthorized exception.
As such we need to disable this ability until
the cause of the issue have been figured out.

ref cake-contrib/Cake.Recipe#706
@gep13 gep13 added the Bug label Oct 7, 2020
@gep13 gep13 self-assigned this Oct 7, 2020
@gep13 gep13 added this to the 2.0.1 milestone Oct 7, 2020
gep13 added a commit that referenced this issue Oct 7, 2020
Adding the ApiKey parameter when pushing to GitHub Package Repository
causes an authentication issue. This didn't used to cause a problem, but
I suspect that something has changed on the GitHub side of things.
@gep13
Copy link
Member

gep13 commented Oct 7, 2020

@pascalberger this has been addressed and will be pushed out in the 2.0.1 release of Cake.Recipe.

A successful push was done here: https://ci.appveyor.com/project/cakecontrib/cake-recipe/builds/35622712#L437

@gep13 gep13 closed this as completed Oct 7, 2020
gep13 added a commit that referenced this issue Oct 9, 2020
* hotfix/2.0.1:
  (build) Updating GRM config
  (GH-705) Update notification messages
  (GH-701) Update wording in nuspec file
  (GH-708) Add ability to detect branches when running on detached tags
  (GH-706) Only add ApiKey when on Azure Artifacts
@cake-contrib-bot
Copy link
Contributor

🎉 This issue has been resolved in version 2.0.1 🎉

The release is available on:

Your GitReleaseManager bot 📦🚀

gep13 added a commit that referenced this issue Oct 9, 2020
* hotfix/2.0.1:
  (build) Updating GRM config
  (GH-705) Update notification messages
  (GH-701) Update wording in nuspec file
  (GH-708) Add ability to detect branches when running on detached tags
  (GH-706) Only add ApiKey when on Azure Artifacts
cake-contrib-bot pushed a commit that referenced this issue Oct 9, 2020
Merge branch 'hotfix/2.0.1' into develop

* hotfix/2.0.1:
  (build) Updating GRM config
  (GH-705) Update notification messages
  (GH-701) Update wording in nuspec file
  (GH-708) Add ability to detect branches when running on detached tags
  (GH-706) Only add ApiKey when on Azure Artifacts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants