candoumbe/Candoumbe.Types

[BUG] ๐Ÿž `IPublish` target fails to publish packages to github

candoumbe opened this issue ยท 1 comments

Expected Behavior

Packages should be published to the repository artifact

Stacktrace / Exception

https://github.com/candoumbe/Candoumbe.Types/actions/runs/4036841704/jobs/6939730846

12:49:47 [INF] 2 package(s) will be published to Nuget
12:49:47 [INF] 2 package(s) will be published to GitHub
12:49:47 [INF] > /usr/bin/dotnet nuget push /home/runner/work/Candoumbe.Types/Candoumbe.Types/output/artifacts/packages/Candoumbe.Types.0.1.0-alpha0023.nupkg --source https://api.nuget.org/v3/index.json --api-key [hidden] --no-symbols --skip-duplicate
12:49:48 [DBG] Pushing Candoumbe.Types.0.1.0-alpha0023.nupkg to 'https://www.nuget.org/api/v2/package'...
12:49:48 [DBG]   PUT https://www.nuget.org/api/v2/package/
12:49:49 [DBG]   Created https://www.nuget.org/api/v2/package/ 967ms
12:49:49 [DBG] Your package was pushed.
12:49:49 [INF] > /usr/bin/dotnet nuget push /home/runner/work/Candoumbe.Types/Candoumbe.Types/output/artifacts/packages/Candoumbe.Types.0.1.0-alpha0023.nupkg --source https://nuget.pkg.github.com/candoumbe/index.json --api-key [hidden] --no-symbols --skip-duplicate
12:49:50 [DBG] Pushing Candoumbe.Types.0.1.0-alpha0023.nupkg to 'https://nuget.pkg.github.com/candoumbe'...
12:49:50 [DBG]   PUT https://nuget.pkg.github.com/candoumbe/
12:49:50 [DBG] warn : Your request could not be authenticated by the GitHub Packages service. Please ensure your access token is valid and has the appropriate scopes configured.
12:49:50 [DBG]   Forbidden https://nuget.pkg.github.com/candoumbe/ [137](https://github.com/candoumbe/Candoumbe.Types/actions/runs/4036841704/jobs/6939730846#step:4:143)ms
  Error: error: Response status code does not indicate success: 403 (Forbidden).
12:49:50 [ERR] error: Response status code does not indicate success: 403 (Forbidden).

This was due to an incorrect setting of scope used by the Github token
image