-
Notifications
You must be signed in to change notification settings - Fork 53
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
Submission CI: restrict !redo
for only authors and admins of repo
#60
Comments
@mickahell Do you have a pattern for restrict only authors and admins to trigger action? |
For the triggering part I don't know it seems to depend of the setting of the repo BUT to avoid having lot of same actions with for the same issue in the same time we can use :
That's way cancel previous action from the same issue |
@IceKhan13 did you see my response ? |
We do not have a problem that same issue will be triggered, we have a problem that anyone can trigger them =( I think we can handle this in actions itself, something like if: ${{github.event.user == github.event.issue.author}} || ${{github.event.user._is_contributor}} Something like this :) |
We will discuss it on tomorrows sync and I'll post here solution we will come up with for transparency |
I guess it has a var for |
Apparently we can get all of the vars like this :
https://github.community/t/how-to-find-the-default-variables-for-each-github-action-variable/17162/2 |
Something like that if: ${{github.event.issue.user.type == "Author"}} || ${{github.event.issue.user.type == "Contributor"}} || ${{github.event.issue.user.type == "Admin"}} |
What is the expected enhancement?
Currently anyone can type
!redo
and spam our CI with job requests.We need to restrict this possibility to only authors and admins (members of community) of repo
The text was updated successfully, but these errors were encountered: