You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Still needs some discussion, but In general do we want to allow every recipe creator to potentiall fire off giant dataflow jobs?
here is a suggestion by chatgpt how we could potentially limit this to certain people/teams
name: Controlled Workflow Dispatch
on:
workflow_dispatch:
jobs:
check_permission:
runs-on: ubuntu-latest
steps:
- name: Check if user is authorized
run: |
if [[ "$GITHUB_ACTOR" != "authorized_user1" && "$GITHUB_ACTOR" != "authorized_user2" ]]; then
echo "You are not authorized to trigger this workflow."
exit 1
fi
main_job:
needs: check_permission
runs-on: ubuntu-latest
steps:
- name: Execute Main Steps
run: echo "Running main steps..."
The text was updated successfully, but these errors were encountered:
Still needs some discussion, but In general do we want to allow every recipe creator to potentiall fire off giant dataflow jobs?
here is a suggestion by chatgpt how we could potentially limit this to certain people/teams
The text was updated successfully, but these errors were encountered: