diff --git a/.github/workflows/contributor_license_agreement.yml b/.github/workflows/contributor_license_agreement.yml index 9668eadeb..52d887874 100644 --- a/.github/workflows/contributor_license_agreement.yml +++ b/.github/workflows/contributor_license_agreement.yml @@ -13,7 +13,12 @@ jobs: actions: write pull-requests: write if: | - github.actor != 'argo-translation-integration[bot]' + ( + # The PR author is stored differently depending on the event type, see + # https://github.com/orgs/community/discussions/25502 + (github.event_name == 'pull_request_target' && github.event.pull_request.user.login != 'argo-translation-integration[bot]') + || (github.event_name == 'issue_comment' && github.event.issue.user.login != 'argo-translation-integration[bot]') + ) && ( (github.event.issue.pull_request && !github.event.issue.pull_request.merged_at