Azure SWA Github Action failure
I have a static web app that I want to just serve an index.html, but my github action is failing with:
2025-01-01T07:49:26.9203515Z : The content server has rejected the request with: BadRequest
2025-01-01T07:49:26.9204633Z: Reason: No matching Static Web App was found or the api key was invalid.
However I've set my github repository secret AZURE_STATIC_WEB_APPS_API_TOKEN to the deployment token in my static web app. What else could be the problem?
My workflow file was taken from here - https://github.com/actions/starter-workflows/blob/main/deployments/azure-staticwebapp.yml
With:
GitHub
starter-workflows/deployments/azure-staticwebapp.yml at main · acti...
Accelerating new GitHub Actions workflows . Contribute to actions/starter-workflows development by creating an account on GitHub.
2 Replies
I actually looked on the Azure Avitity Logs and see this as the Message for the BadRequest error code:
I'm not quite sure what this means though
Unknown User•4d ago
Message Not Public
Sign In & Join Server To View