Open stunney opened 3 years ago
Tagging @anthonychu , for any further information or insights
Thanks @v-anvari. Will transfer to Static Web Apps repo for further discussion.
Can't really think of a great solution to this. If you are open to running the build yourself by setting up addition steps before the Static Web Apps action, you can potentially spin up Azure Functions Core Tools in the workflow and have the Next.js app call that during build. That way you have a private instance of the function app.
Our Static Web App (Preview) app is using Next.js. During rendering of the static site the build calls several of our Azure Functions.
We are not a public site yet, so we do not want these functions public quite yet. Also want to keep costs/risk down.
We are using the built-in GH Actions (code below)
Is there a way to call the Azure API to temporarily add the actions agent that is running our build (hosted by GitHub) so that the calls can be made successfully and then remove the rule at the end?
I can do these things via PowerShell with Add-AzWebAppAccessRestrictionRule but that requires me to sign on. Not sure what is available via Actions and if an API key could be used in Secrets.
Thank you!