This happens in the very beginning of the swa deployment, which will occur if fail to check one of:
- The length of deployment_token is less than the legal value.
- The parsed characters stands for the slice or region in the token are illegal.
The reporting of this error is even earlier than checking if the token equals to the one shown in portal.
Could you please try below steps-
- Follow Reset deployment tokens in Azure Static Web Apps | Microsoft Learn to reset their token, this will ensure their token meet the above conditions.
- Then manually write the new token to the settings of their github repo or gitlab, this will ensure the action actually read the right token. Hope this helps.
Let us know if you have any further issue here.