sasjs / cli

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

Run SAS Code from sasjs #1184

Closed shivakrishnay closed 2 years ago

shivakrishnay commented 2 years ago

run a sas code which is available in git hub from sasjs

allanbowe commented 2 years ago

Hi @shivakrishnay - can you please elaborate on the exact issue you are facing? What is it you have tried, and what are you trying to do?

allanbowe commented 2 years ago

We support two approaches from running SAS code from GIT.

1) As part of a regular SASjs project (compile/build/deploy from a GIT branch) as described here: https://communities.sas.com/t5/SAS-Global-Forum-Proceedings/Scaffolding-SAS-Projects-With-NPM-and-SASjs/ta-p/726347

2) Executing directly from an unsecured GIT repository using the sasjs run command as described here: https://cli.sasjs.io/run/#using-github-urls

shivakrishnay commented 2 years ago

Getting below error while ran the below code,

sasjs run github link -t sas9

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

allanbowe commented 2 years ago

Hi @shivakrishnay - it sounds like your github repo is using self-signed certificates. If your admin cannot configure the correct certificates, you can try the steps listed here: https://github.com/sasjs/cli/issues/1181#issuecomment-1090638584

Alternatively, you can add the following entry to the relevant target in your sasjs/sasjsconfig.json file (or ~/.sasjsrc if global):

      "httpsAgentOptions": {
        "allowInsecureRequests": true
      },

Can you let us know if these steps work for you?

allanbowe commented 2 years ago

We are assuming that this issue is resolved - if not feel free to raise another.