Skip to content

Commit 5bbf663

Browse files
author
Mokhlesur Rahman Mahin
authored
Merge pull request #1 from MS-Jahan/patch-1
Use `-x` to avoid partial matching
2 parents 02d7378 + ff4a6b2 commit 5bbf663

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ runs:
1414
steps:
1515
- name: Check Permissions
1616
run: |
17-
if ! grep -q "${{ inputs.actor }}" "${{ inputs.permissions-file }}"; then
17+
if ! grep -qx "${{ inputs.actor }}" "${{ inputs.permissions-file }}"; then
1818
echo "-----------------ERROR--------------------"
1919
echo "User ${{ inputs.actor }} is not allowed to trigger this workflow."
2020
echo "------------------------------------------"

0 commit comments

Comments
 (0)