Azure Static Web Apps deployment fails with invalid API key despite token rotation
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 42/100
Línea de trabajo
Start with the repository’s GitHub Actions deployment workflow and the Azure/static-web-apps-deploy@v1 action inputs, then correlate the failed authentication step with the Static Web App resource configuration. Inspect whether deploymentAuthPolicy: GitHub permits the azure_static_web_apps_api_token flow and whether Azure documents a repository-token update path. Done would mean identifying the supported policy/token configuration and demonstrating a successful deployment without recreating the resource or losing its custom domain.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
:::writing{variant="standard" id="58321"}
Problem
My Azure Static Web App was deploying successfully through GitHub Actions until November 22, 2026. Subsequent deployments fail with:
The content server has rejected the request with: BadRequest
Reason: No matching Static Web App was found or the api key was invalid.
Environment
- Azure Static Web Apps Free plan
- Resource:
azure-resume - Resource group:
azure-resume-rg - GitHub repository:
swiswach/azure-resume - Branch:
main - Deployment action:
Azure/static-web-apps-deploy@v1 - Application directory:
site - Deployment authorization policy:
GitHub
Troubleshooting performed
- Confirmed the last successful deployment on November 22, 2026.
- Confirmed the application directory exists and the build completes.
- Verified the GitHub Actions secret name matches the workflow.
- Reset the Azure deployment token and updated the GitHub repository secret.
- Reran the deployment; the same authentication error occurred.
- Removed unused OIDC steps and the unsupported
github_id_tokeninput from the workflow. - Inspected the Azure resource using Resource Explorer and Azure CLI.
The resource configuration contains:
"deploymentAuthPolicy": "GitHub"
Attempts to change this to DeploymentToken using Azure CLI and the Azure management API fail with:
DeploymentAuthPolicy is invalid.
Cannot update policy without providing repository token.
The deployment authorization controls in Azure Portal are grayed out.
Expected behavior
GitHub Actions should successfully deploy the website using the current Azure Static Web Apps deployment token, or Microsoft should provide a supported method for configuring the appropriate deployment authorization policy.
Questions
- Why is the deployment token rejected even after rotation?
- Is
deploymentAuthPolicy: GitHubcompatible withAzure/static-web-apps-deploy@v1when usingazure_static_web_apps_api_token? - What is the supported method for changing the deployment authorization policy without recreating the Static Web App?
I would like to preserve the existing Free-tier resource and custom domain.
- Lenguaje dominante
- Sin datos de lenguaje
- Estrellas
- 347
- Forks
- 68
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Azure/static-web-apps
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Azure/static-web-apps#1764 · 2 comentarios ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
Azure/static-web-apps#1827 ·
-
Managed Functions Not RestartingAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Azure/static-web-apps#1826 · 5 comentarios · 1 reacción ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 18/100
Azure/static-web-apps#1824 ·
-
Dificultad 4/5 3-5 días Aptitud para principiantes 12/100
Azure/static-web-apps#1823 ·
Todos los issues de Azure/static-web-apps
Issues similares
-
kind/feature needs-triage priority/unprioritized
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
NVIDIA/k8s-test-infra#1503 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Docker > Volumes: sorting by Size does nothing, and text columns sort inconsistentlyPosiblemente ocupada @BitPluto la tomó hoy. Abiertoneeds-triage🔍
Dificultad 2/5 1-3 horas Aptitud para principiantes 79/100
Dokploy/dokploy#6203 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Area/Infrastructure Aspect/Infra Resources Type/Bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
wso2/agent-manager#2717 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
ShaftHQ/chaosengine-harness#522 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
containerd/containerd.io#342 ·