Skip to content

Commit

Permalink
chore(ci): use complete bot names on permission checks
Browse files Browse the repository at this point in the history
White-listed bots have '[bot]' as username suffix.
  • Loading branch information
soonum committed Jan 27, 2025
1 parent 7a241aa commit 5524114
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check_actor_permissions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.TOKEN }}

- name: Check User Permission
if: (inputs.username != 'dependabot' || inputs.username != 'cla-bot') &&
if: (inputs.username != 'dependabot[bot]' || inputs.username != 'cla-bot[bot]') &&
steps.check-access.outputs.require-result == 'false'
run: |
echo "${{ inputs.username }} does not have permissions on this repo."
Expand Down

0 comments on commit 5524114

Please sign in to comment.