`Branch "feature/login" is not allowed to deploy to prod due to environment protection rules.`
BeginnerTroubleshootingDeployments, Environments & Releases
Answer
Likely causes → Working as designed: the prod environment only allows main and release tags, and someone dispatched from a feature branch.
Diagnose →
gh api repos/ORG/REPO/environments/prod/deployment-branch-policies --jq '.branch_policies[].name'
Fix → Merge to main and deploy from there or via a release tag.
Prevent → Restrict the workflow_dispatch UI documentation to say "run from main".
More on Deployments, Environments & Releases
Deploy job shows `Waiting for review: prod needs approval to start deploying changes` but no reviewer got notified.Beginner`Canceling since a higher priority waiting request for 'deploy-prod' exists`Intermediate`kubectl rollout status` timed out: `error: deployment "shack-api" exceeded its progress deadline`Intermediate`ErrImagePull ... failed to resolve reference "111122223333.dkr.ecr.ap-south-1.amazonaws.com/shack-api@sha256:...": not found` after a deploy.AdvancedRelease workflow `gh release create` fails with `HTTP 403: Resource not accessible by integration`Beginner`gh release create v1.4.0 --verify-tag` fails with `tag v1.4.0 doesn't exist in the repo`.Beginner