New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Option to exclude workflow initiator (GITHUB_ACTOR
) as an approver
#59
Option to exclude workflow initiator (GITHUB_ACTOR
) as an approver
#59
Conversation
Thanks for your PR! I really like this, and agree this is a great feature to add. This should definitely be behind a configuration setting, like you mention. Thanks again! |
@trstringer Updated! I've tested the input flag in a private repo and it works as expected. I went with |
GITHUB_ACTOR
) as an approverGITHUB_ACTOR
) as an approver
Thank you for your contribution!! |
Hi there, thanks for creating this GH Action - it's come in handy for some workflows over at @leaselock :)
We have a use case in which we want to allow a team of users to approve a step. However, if the user who initiates the workflow is also part of the team, we don't want to allow the initiator to self-approve.
This workflow initiator is exposed as a default environment variable
GITHUB_ACTOR
, so we added a small change to filter that user out.I figured I'd share this PR as it might be useful for other users too. Perhaps we can toggle this behavior based on an input flag
allow_workflow_initiator_as_approver: true|false
?