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.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!

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.

Register for SAS Innovate 2025!! The premier event for SAS users, May 6-9 in Orlando FL. Sign up now for the best deals!
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

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

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
  • 2240 views
  • 0 likes
  • 3 in conversation