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.

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!

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.

Check out SAS Innovate on-demand content! Watch the main stage sessions, keynotes, and over 20 technical breakout sessions!
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-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

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