simonw / action-transcription-prototype

Open an issue with a YouTube URL, get back a transcript of that video
2 stars 1 forks source link

Only users on allow-list should be able to trigger action with issues #5

Open simonw opened 2 years ago

simonw commented 2 years ago

Follows:

simonw commented 2 years ago

From https://github.com/simonw/transcribe-videos/issues/2#issuecomment-1257024599

I can look at context.payload.sender.login to see if they are allowed to do this.

I can also check and see if context.payload.issue.author_association is "OWNER" so owners of the repo can always trigger actions.