Skip to content

Commit

Permalink
Merge pull request #1 from MS-Jahan/patch-1
Browse files Browse the repository at this point in the history
Use `-x` to avoid partial matching
  • Loading branch information
Mokhlesur Rahman Mahin authored Aug 13, 2024
2 parents 02d7378 + ff4a6b2 commit 5bbf663
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ runs:
steps:
- name: Check Permissions
run: |
if ! grep -q "${{ inputs.actor }}" "${{ inputs.permissions-file }}"; then
if ! grep -qx "${{ inputs.actor }}" "${{ inputs.permissions-file }}"; then
echo "-----------------ERROR--------------------"
echo "User ${{ inputs.actor }} is not allowed to trigger this workflow."
echo "------------------------------------------"
Expand Down

0 comments on commit 5bbf663

Please sign in to comment.