Error AtlasError Documentation and Resolution

GitHub deployment environment rejected deployment:false due to protection rules

The environment's protection rules are incompatible with deployment: false.

GitHub immediately fails the workflow job when an environment has custom deployment protection rules but the workflow disables deployment object creation with deployment: false.

environment protection rules are incompatible with deployment: falsedeployment
The environment's protection rules are incompatible with deployment: false.
  • The workflow sets environment.deployment to false.
  • The target GitHub environment has custom deployment protection rules configured.
  • The workflow and environment settings are logically incompatible.
  1. Remove deployment: false from the workflow if you need to use that protected environment.
  2. Or remove the custom deployment protection rules from the environment.
  3. Retry the workflow after aligning workflow behavior with environment protection settings.
GitHub Docs: Deploying with GitHub Actions
GitHub deployment protection rules incompatible with deployment false | Error Atlas