Debian Codegraph @

.github/workflows/cla.yml

raw
1 name: CLA
2
3 on:
4 issue_comment:
5 types:
6 - created
7 pull_request_target:
8
9 concurrency:
10 group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.event.issue.number || github.run_id }}
11 cancel-in-progress: true
12
13 permissions:
14 contents: read
15
16 jobs:
17 check:
18 name: Check CLA
19 if: >-
20 !github.event.repository.fork
21 && (
22 github.event.issue.pull_request
23 && github.event.comment.body == '@conda-bot check'
24 || github.event_name == 'pull_request_target'
25 )
26 runs-on: ubuntu-slim
27 permissions:
28 contents: read
29 pull-requests: write # Required to update labels and comments on pull requests.
30 statuses: write # Required to publish the CLA commit status.
31 steps:
32 - name: Check CLA
33 uses: conda/actions/check-cla@d88418cd4e36358ba51e7c88f2d2d5edb9ac49e7 # v26.8.1
34 with:
35 # [required]
36 # A token with ability to comment, label, and modify the commit status
37 # (`pull_request: write` and `statuses: write` for fine-grained PAT; `repo` for classic PAT)
38 # (default: secrets.GITHUB_TOKEN)
39 token: ${{ secrets.CLA_ACTION_TOKEN }}
40 # [required]
41 # Label to apply to contributor's PR once CLA is signed
42 label: cla-signed
43
44 # [required]
45 # Token for opening signee PR in the provided `cla_repo`
46 # (`pull_request: write` for fine-grained PAT; `repo` and `workflow` for classic PAT)
47 cla_token: ${{ secrets.CLA_FORK_TOKEN }}