Check out the docs for github pipelines here: https://learn.microsoft.com/en-us/azure/static-web-apps/build-configuration?tabs=github-actions#build-configuration
Which token is used? This one: https://learn.microsoft.com/en-gb/azure/static-web-apps/deployment-token-management