delete-deployment-environment icon indicating copy to clipboard operation
delete-deployment-environment copied to clipboard

Environment still available in workflow_dispatch input type 'environment'

Open IJustDev opened this issue 2 years ago • 1 comments

I'm using your action to delete the environment with a manual trigger.

GitHub says use the workflow_dispatch trigger.

I'm passing an input of type: environment into your GitHub Action.

After successful function run I can still select the environment in the dropdown

IJustDev avatar Jun 10 '22 10:06 IJustDev

Are you using the default Github Action token or are you passing in a personal access token? It is notated in the README that the default action token does not have the require scope to delete an environment. Using a PAT is the only way I'm currently aware of to delete the environment.

strumwolf avatar Jun 20 '22 15:06 strumwolf