Skip to content

Commit bb14dc1

Browse files
authored
Use CLA GitHub Action (#2510)
1 parent 026cc97 commit bb14dc1

File tree

3 files changed

+56
-7
lines changed

3 files changed

+56
-7
lines changed

.github/workflows/f5-cla.yml

+51
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+
12+
concurrency:
13+
group: ${{ github.ref_name }}-cla
14+
cancel-in-progress: true
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 }}

CONTRIBUTING.md

+5-7
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ considering contributing!
1717
- [Suggest an Enhancement](#suggest-an-enhancement)
1818
- [Issue lifecycle](#issue-lifecycle)
1919
- [Development Guide](#development-guide)
20-
- [Contributor License Agreement](#contributor-license-agreement)
20+
- [F5 Contributor License Agreement (CLA)](#f5-contributor-license-agreement-cla)
2121

2222
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
2323

@@ -99,10 +99,8 @@ Before beginning development, familiarize yourself with the following documents:
9999
- [Design Principles](/docs/developer/design-principles.md): An overview of the project's design principles.
100100
- [NGINX Gateway Fabric Documentation](/site/README.md): An explanation of the documentation tooling and conventions.
101101

102-
## Contributor License Agreement
102+
## F5 Contributor License Agreement (CLA)
103103

104-
Individuals or business entities who contribute to this project must have completed and submitted
105-
the [F5® Contributor License Agreement](F5ContributorLicenseAgreement.pdf) prior to their code submission being included
106-
in this project. To submit, print out the [F5® Contributor License Agreement](F5ContributorLicenseAgreement.pdf), fill
107-
in the required sections, sign, scan, and send executed CLA to [email protected]. Make sure to include your github
108-
handle in the CLA email.
104+
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)) before any of their changes can be incorporated into an F5 Open Source repository.
105+
106+
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 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 can be merged. Your agreement signature will be safely stored by F5 and no longer be required in future PRs.

F5ContributorLicenseAgreement.pdf

-83.9 KB
Binary file not shown.

0 commit comments

Comments
 (0)