Managing environments for deployment - GitHub Docs
You can create environments and secure those environments with deployment protection rules. A job that references an environment must follow any protection rules for the environment before running or accessing the environment's secrets.
GitHub Docs