Skip to content

Does not accept my PAT on a new system, but accepts the same PAT on an older one. #142169

Answered by luannndev
camuso asked this question in Code Security
Discussion options

You must be logged in to vote

Hi camuso,

It looks like you're encountering an authentication issue with your Personal Access Token (PAT) on a new system. Here are a few things you can try to resolve the issue:

Token Scope: Make sure that your PAT has the correct scopes enabled for the actions you want to perform. For pushing to a repository, you typically need the repo scope.

Token Format: Double-check that you are using the PAT correctly as the password when prompted. It should be used instead of your GitHub password.

Credential Manager: If you are using a credential manager (like Git Credential Manager), it might be storing outdated credentials. You can try clearing the stored credentials and then re-entering your PAT.

Replies: 1 comment 1 reply

This comment was marked as off-topic.

@camuso
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code Security Build security into your GitHub workflow with features to keep your codebase secure Question
2 participants