Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions .github/workflows/cla.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,16 @@ permissions:

jobs:
cla-check:
# The script below already returns immediately for bots and for owners,
# members and collaborators — but only after the job has started, and a
# started job is billed a whole minute however fast it exits. Hoisting the
# same test to the job level means it is never started at all. Behaviour is
# unchanged: the check still runs, on GitHub-hosted infrastructure, for the
# external contributors it exists for.
if: >-
!endsWith(github.event.pull_request.user.login, '[bot]') &&
!contains(fromJSON('["OWNER","MEMBER","COLLABORATOR"]'),
github.event.pull_request.author_association)
runs-on: ubuntu-latest
steps:
- name: Harden the runner (audit egress)
Expand Down