BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
dipand
Quartz | Level 8
Hello,
I have a problem.
I have a github repository and I want to copy the files present in my local folder into it.
I use this instruction:

date _null_;
 rc = gitfn_push (
  "& dir_git.",
  "& user_github.",
  "& passw_github.");
run;

and I get the following error message:
"
ERROR: Failed to authenticate with the remote repository.
"
I can't understand why as username and password are correct as I access the folder on github.
Any suggestions?

Thank you all

 

1 ACCEPTED SOLUTION

Accepted Solutions
ChrisHemedinger
Community Manager

Do you have 2-factor authentication enabled on GitHub (best practice)? If so, your normal GitHub password won't work.

 

Instead, you need to create a Personal Access Token. You use this just like a password, but in creating the token you have some control over the permissions and of course you can always revoke it if needed.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!

View solution in original post

6 REPLIES 6
ChrisHemedinger
Community Manager

Do you have 2-factor authentication enabled on GitHub (best practice)? If so, your normal GitHub password won't work.

 

Instead, you need to create a Personal Access Token. You use this just like a password, but in creating the token you have some control over the permissions and of course you can always revoke it if needed.

SAS For Dummies 3rd Edition! Check out the new edition, covering SAS 9.4, SAS Viya, and all of the modern ways to use SAS!
dipand
Quartz | Level 8
Hello,
I don't have the active double authentication on github, I can't understand the reason for the error.
dipand
Quartz | Level 8
Hello,
I need some help. The problem reported in recent weeks has been resolved. For a few days when I try to push the folder on github from sas I get this error message:
"
unexpected HTTP status code: 403 "

Any suggestions?
ballardw
Super User

Are those values in quotes supposed to be macro variables? If so it appears that you have a space between the & and the variable name and they won't resolve properly.

dipand
Quartz | Level 8
the space in the macro variables was introduced when writing the post but in the program it is correct

hackathon24-white-horiz.png

The 2025 SAS Hackathon Kicks Off on June 11!

Watch the live Hackathon Kickoff to get all the essential information about the SAS Hackathon—including how to join, how to participate, and expert tips for success.

YouTube LinkedIn

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 6 replies
  • 2738 views
  • 0 likes
  • 3 in conversation