Forum Discussion
AdamCodes716
Jan 04, 2024Copper Contributor
Trying to deploy container app from GitHub Actions - Authentication failure
I am trying to deploy to an Azure Container App from GitHub Actions. I am following this guide: https://learn.microsoft.com/en-us/azure/container-apps/github-actions#build-and-deploy-to-container-a...
Kidd_Ip
May 28, 2025MVP
Seems authentication related, meaning your workflow might not have the correct permissions to access the registry, you may:
- Check GitHub Container Registry Authentication
- Verify Image visibility in GHCR
- Check Service Principal permissions:
az role assignment create --assignee <SPN_ID> --role AcrPull --scope /subscriptions/$SUBSCRIPTION_ID/resourceGroups/$RESOURCE_GROUP/providers/Microsoft.ContainerRegistry/registries/$ACR_NAME
- Ensure the correct Image reference:
curl -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" https://ghcr.io/v2/${{ github.repository }}/tags/list