There are security concerns with this option. I made poc but haven’t gotten it to fully work.
Add optional command line argument to directly pass api key --api-key xxxx
This seems like the most practical solution. Looking at coda/packs-sdk/blob/main/cli/upload.ts I don’t see an option to do so. I can create a PR for it but I’d like to get feedback from the community first. Perhaps I’m missing something obvious here I hope.
Hi @Mohammad_Mohammad2 - Thanks for kicking off this discussion. I’ve had people mention to me that they wanted to set up a GitHub action before, but I hadn’t had time to look into it to date. I agree that it would be nice to have a parameter for the token for cases like this, and I can see if the engineers would be open to accepting that PR.
I did some testing and found that I could create a .coda.json file without too much trouble. Here’s what my workflow file looks like: