sasjs / cli

Command line interface for creating, compiling, and building SAS® projects
https://cli.sasjs.io
MIT License
37 stars 5 forks source link

Certificate issues when running code directly from github #1196

Closed shivakrishnay closed 2 years ago

shivakrishnay commented 2 years ago

C:\Users\sy1009\Desktop>sasjs run https://github.xxxx.com/xxx/xxx/xxx/test_code.sas -t sas9 i Target sas9 was found in your global .sasjsrc file. 17:23:31

ERROR An error has occurred when running your SAS code. 17:23:33 Error while handling error. unable to verify the first certificate

allanbowe commented 2 years ago

Hi Shiva - can you verify the following?

  1. Does sasjs run work when the file is LOCAL to your machine (this will rule out issues on the SAS side)
  2. Can you try putting your github URL into this website and tell us what the result is? https://www.sslshopper.com/ssl-checker.html

For clarity, we do not recommend running SAS code directly from github, at least not in a production context. The proper way to do this would be to clone the repository first.

shivakrishnay commented 2 years ago

github.xxxxx.com does not resolve to an IP address. Please make sure your DNS records are set up correctly.

allanbowe commented 2 years ago

It seems your github is behind a firewall.

Are you able to successfully execute sasjs run without a github URL? Using a local SAS program?

allanbowe commented 2 years ago

Hi @shivakrishnay - are you still having issues?

allanbowe commented 2 years ago

Closing due to inactivity. In general we do not support nor recommend running code directly from github, especially in production.

The problem is, you cannot be sure exactly which version of the code you ran (as github is frequently updated).

It makes more sense to follow a regular development flow, where you clone the git repo (personally or as part of a pipeline), and compile / build / deploy / execute your project from a specific branch.