DeploymentProtection rule #65651
Replies: 2 comments
|
Certainly! GitHub Actions provides a way to programmatically handle deployment protection rules and approvals using "environments" in the workflow. When using environments, you can specify required reviewers for any environment, ensuring that changes only get deployed after an approval. Here's how you can set this up programmatically in a workflow:
While it would be ideal to handle everything directly within the GitHub Actions workflow, the current capabilities of GitHub require some manual setup. However, once set up, the process is robust and can effectively gate deployments behind managerial approval. |
|
Hello, I am in the same situation. I would like to create a code to approve it through API. Is it possible that deployments can be approved only with the PAT? because I have this url to detect pending deployments. curl -L But with the following command I can't execute it. curl -L Response: % Total % Received % Xferd Average Speed Time Time Time Current
|

Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
General
Body
Hi Team,
Is there a method by which we can create a Deployment Protection Rule using the actions and workflows.
The requirement is to deploy to Prod only after approval from the managers.
This I am able to do using Environments in the UI, but I want to do it programatically. Could someone please help on this.
Thanks in advance.
All reactions