google / clasp

🔗 Command Line Apps Script Projects
https://developers.google.com/apps-script/guides/clasp
Apache License 2.0
4.52k stars 422 forks source link

Unable to use `clasp run` in Github actions workflow #962

Open jaemin-capslock opened 1 year ago

jaemin-capslock commented 1 year ago

(Note: Non-breaking issues are likely not to be prioritized. Please consider a PR in addition to your issue)

Expected Behavior

I have a function in my code that runs tests of my code. Currently, I want to use GitHub actions to do the following workflow:

Github push -> install clasp in GitHub actions -> clasp login --creds creds.json -> clasp run runTests -> clasp push

According to run.md, it is necessary to run the clasp login step to use clasp run. clasp login returns an OAuth URL to the terminal which the user has to manually click and verify, which is not possible within Github actions. Are there any workarounds or suggestions?

sanmisanti commented 1 month ago

Have you found any solutions?