Unauthorised when using secrets.GITHUB_TOKEN
. Packages not pushed to Github Repository Packages when using PAT.
#521
Labels
bug
Something isn't working
Description:
When pushing packages to GitHub Packages using Github Actions I get two behaviours:
When using a Personal Access Token (PAT) in
dotnet push
the package is pushed to the Github account.However it does not show on the Repository Packages ... Only in the Github Account packages tab.
When using
secrets.GITHUB_TOKEN
indotnet push
I get an unauthorised error.I tried a few code variations based on research I did on various issues but the error persists.
Note: I don't have a
nuget.config
inn the project's root or anywhere else.Task version:
8.0.4
Platform:
Runner type:
Repro steps:
Expected behavior:
The packages should be pushed to the repository packages.
If possible using
secrets.GITHUB_TOKEN
instead of a Personal Access Token.Actual behavior:
When using a Personal Access Token (PAT) in
dotnet push
the package is pushed to the Github account.However it does not show on the Repository Packages ... Only in the Github Account packages tab.
When using
secrets.GITHUB_TOKEN
indotnet push
I get an unauthorised error:I tried a few code variations based on research I did on various issues but the error persists.
Version 1
Version 2
The text was updated successfully, but these errors were encountered: