Skip to content

Commit

Permalink
Merge pull request #31 from impel-intelligence/actions_2
Browse files Browse the repository at this point in the history
Limit who can trigger manual workflow
  • Loading branch information
pravin-X109 authored Dec 11, 2024
2 parents 5fe116a + 3deaced commit 26a9616
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/validator-script-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,13 @@ jobs:
runs-on: ubuntu-latest # Use the latest Ubuntu image as the runner environment

steps:
- name: Check Triggering User
run: |
AUTHORIZED_USERS=("pravin-X109" "ManavShahWasTaken" "donaldknoller")
if [[ ! " ${AUTHORIZED_USERS[@]} " =~ " ${{ github.actor }} " ]]; then
echo "Unauthorized user: ${{ github.actor }}"
exit 1
fi
- name: Placeholder step
run: echo "This is a basic workflow with manual triggering enabled."

0 comments on commit 26a9616

Please sign in to comment.