Showing results for 
Search instead for 
Did you mean: 
Ground Controller Lvl 1
Message 1 of 2

Secrets scoped to branches

We're thinking of setting up staging vs. production deploys in GitHub Actions from `master` vs. `develop` branches. Each deployment environment needs different secrets.


I know it's possible to add multiple secrets to the repo and write workflow code to pick the correct secrets based on the current branch. But it would be really nice if GitHub Actions supported scoping secrets to specific branches. (@N-Usha from @AzureDevOps says this is a "much needed feature".)


I have submitted feedback for to request this feature. Any hints of about if it is on the roadmap?


Maybe implementing this can help address some of the security concerns around secrets:

1 Reply
GitHub Partner
Message 2 of 2

Re: Secrets scoped to branches

Hi @dcecile , 

I have seen this request in our internal channel, but the priority of it is not very high in current. So i am afraid that it could not be carried out in a short time.