-
Notifications
You must be signed in to change notification settings - Fork 435
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to use clasp run
in Github actions workflow
#962
Comments
Have you found any solutions? |
You can use clasp in github workflows, see https://github.com/googleworkspace/apps-script-samples/blob/main/.github/workflows/publish.yaml#L36 as an example.
Service accounts aren't currently support with clasp, not sure if ever will as apps script isn't intended to be used by them. |
@sqrrrl the secret will expire in 6 month. Unless it's updated. I.e. either deploys will stop working exactly on the day of fire or you need to give full admin access to the github action to update secret dynamically. |
Will track as part of #950. Investigating to see if can support service accounts in 3.x, need to do some experiments. Closing as duplicate. |
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 pushAccording to
run.md
, it is necessary to run theclasp login
step to useclasp 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?The text was updated successfully, but these errors were encountered: