Skip to content
Discussion options

You must be logged in to vote

Hey! I’ve run into this exact 403 error before. Even with "write-all" permissions, the dotnet CLI is super picky about how it talks to GitHub.
The main reason this happens is usually that the push command is missing the index.json part of the URL, or it’s having trouble mapping your "github" source name to your actual credentials.
Here is the quick fix to try in your YAML file:
In your "Push package to GitHub packages" step, instead of using just --source "github", try using the full, direct URL:
https://nuget.pkg.github.com/PlatinumLucario/index.json
Also, try swapping out your custom secret for the built-in secrets.GITHUB_TOKEN. Since you already have "permissions: write-all" in your sc…

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@PlatinumLucario
Comment options

@PlatinumLucario
Comment options

Answer selected by PlatinumLucario
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Actions Build, test, and automate your deployment pipeline with world-class CI/CD Question Ask and answer questions about GitHub features and usage Workflow Configuration Topics about workflow files, YAML setup, job dependencies, and general workflow configuration issues Welcome 🎉 Used to greet and highlight first-time discussion participants. Welcome to the community! source:ui Discussions created via Community GitHub templates
3 participants