Deploy fails "No matching Static Web App was found or the api key was invalid" — GitHub policy, nothing changed since last successful deploy

Aperta
#1,824 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
azure, github-actions
Ambito
ci-cd, cloud

Direzione di ricerca

This is a deployment failure from the Azure Static Web Apps service, not a source-code defect in this repository, and the payload names no file, test or entry point to change. Start by reproducing the workflow conditions from the report and comparing the GitHub Actions OIDC token claims against the app's deployment authorization policy. Done would mean a confirmed root cause, such as a service-side policy or permission change, plus a documented workaround, which needs Azure-side access the newcomer may not have.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Since 22 Nov 2026 every deploy of our Static Web App (Free plan, deployment authorization policy: GitHub) fails at "Looking for event info" with:
The content server has rejected the request with: BadRequest — Reason: No matching Static Web App was found or the api key was invalid.
DeploymentId: c3df9b0e-260b-460c-88b6-daa128f4584b

The last successful deploy was on 15 Nov 2026. Between the two runs nothing changed:

same workflow file (push to master, id-token: write, github_id_token passed from core.getIDToken())
same action SHA Azure/static-web-apps-deploy@v1 = 1a947af9992250f3bc2e68ad0754c0b0c11566c9
same client image staticappsclient:stable@sha256:026b202feacf67ec0acd4846a1d17953f6c3c8ff912a1c0ec29aa6000a495f12
Already checked: deployment token reset and GitHub secret updated (no change); Source shows the correct repo/branch; "Azure App Service Creates" OAuth app is authorized; no resource locks; I have Owner; subscription is Active.
Also, the app's Configuration blade is entirely read-only for me (Owner), so the deployment authorization policy cannot be switched to "Deployment token"

Lingua principale
Nessun dato sulla lingua
Stelle
347
Fork
68
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Azure/static-web-apps

Tutte le issue di Azure/static-web-apps

Issue simili

Altre issue su DevOps

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.