Skip to content

Commit 86b8cbb

Browse files
authored
Use CLA GitHub Action (#364)
1 parent f685b9e commit 86b8cbb

File tree

3 files changed

+61
-4
lines changed

3 files changed

+61
-4
lines changed

.github/workflows/f5-cla.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: F5 CLA
2+
3+
on:
4+
issue_comment:
5+
types:
6+
- created
7+
pull_request_target:
8+
types:
9+
- opened
10+
- synchronize
11+
- reopened
12+
13+
concurrency:
14+
group: ${{ github.ref_name }}-cla
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
f5-cla:
21+
name: F5 CLA
22+
runs-on: ubuntu-22.04
23+
permissions:
24+
actions: write
25+
contents: read
26+
pull-requests: write
27+
statuses: write
28+
steps:
29+
- name: Run F5 Contributor License Agreement (CLA) assistant
30+
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have hereby read the F5 CLA and agree to its terms') || github.event_name == 'pull_request_target'
31+
uses: contributor-assistant/github-action@f41946747f85d28e9a738f4f38dbcc74b69c7e0e # v2.5.1
32+
with:
33+
# Any pull request targeting the following branch will trigger a CLA check.
34+
branch: "main"
35+
# Path to the CLA document.
36+
path-to-document: "https://github.com/f5/.github/blob/main/CLA/cla-markdown.md"
37+
# Custom CLA messages.
38+
custom-notsigned-prcomment: "🎉 Thank you for your contribution! It appears you have not yet signed the F5 Contributor License Agreement (CLA), which is required for your changes to be incorporated into an F5 Open Source Software (OSS) project. Please kindly read the [F5 CLA](https://github.com/f5/.github/blob/main/CLA/cla-markdown.md) and reply on a new comment with the following text to agree:"
39+
custom-pr-sign-comment: "I have hereby read the F5 CLA and agree to its terms"
40+
custom-allsigned-prcomment: "✅ All required contributors have signed the F5 CLA for this PR. Thank you!"
41+
# Remote repository storing CLA signatures.
42+
remote-organization-name: "f5"
43+
remote-repository-name: "f5-cla-data"
44+
path-to-signatures: "signatures/beta/signatures.json"
45+
# Comma separated list of usernames for maintainers or any other individuals who should not be prompted for a CLA.
46+
allowlist: bot*
47+
# Do not lock PRs after a merge.
48+
lock-pullrequest-aftermerge: false
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
PERSONAL_ACCESS_TOKEN: ${{ secrets.F5_CLA_TOKEN }}

.yamllint.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
---
2-
yaml-files:
3-
- "*.yaml"
4-
- "*.yml"
5-
62
ignore-from-file: .gitignore
73

84
extends: default

CONTRIBUTING.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ considering contributing!
1414
- [Suggest an Enhancement](#suggest-an-enhancement)
1515
- [Open a Pull Request](#open-a-pull-request)
1616
- [Issue lifecycle](#issue-lifecycle)
17+
- [F5 Contributor License Agreement (CLA)](#f5-contributor-license-agreement-cla)
1718
- [Style Guides](#style-guides)
1819
- [Git Style Guide](#git-style-guide)
1920
- [Go Style Guide](#go-style-guide)
@@ -60,6 +61,15 @@ issue template.
6061
type of issue it is (bug, feature request, etc) and to determine the milestone. Please see the [Issue
6162
Lifecycle](ISSUE_LIFECYCLE.md) document for more information.
6263

64+
### F5 Contributor License Agreement (CLA)
65+
66+
F5 requires all external contributors to agree to the terms of the F5 CLA (available [here](https://github.com/f5/.github/blob/main/CLA/cla-markdown.md))
67+
before any of their changes can be incorporated into an F5 Open Source repository.
68+
69+
If you have not yet agreed to the F5 CLA terms and submit a PR to this repository, a bot will prompt you to view and
70+
agree to the F5 CLA. You will have to agree to the F5 CLA terms through a comment in the PR before any of your changes
71+
can be merged. Your agreement signature will be safely stored by F5 and no longer be required in future PRs.
72+
6373
## Style Guides
6474

6575
### Git Style Guide

0 commit comments

Comments
 (0)