Skip to content

Commit

Permalink
CLA: use full action
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Bennetts <psiinon@gmail.com>
  • Loading branch information
psiinon committed Jan 26, 2024
1 parent a05757a commit 144b730
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/cla.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "CLA Assistant"
on:
pull_request_target:
types: [opened,closed,synchronize]

# explicitly configure permissions, in case your GITHUB_TOKEN workflow permissions are set to read-only in repository settings
permissions:
actions: write
Expand All @@ -11,6 +11,20 @@ permissions:
statuses: write

jobs:
build:
uses:
zaproxy/zaproxy/.github/workflows/cla.yml@main
CLAAssistant:
runs-on: ubuntu-latest
steps:
- name: "CLA Assistant"
if: (github.event.comment.body == 'recheck' || github.event.comment.body == 'I have read the CLA Document and I hereby sign the CLA') || github.event_name == 'pull_request_target'
uses: contributor-assistant/github-action@v2.3.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PERSONAL_ACCESS_TOKEN: ${{ secrets.ZAP_CLA_PAT }}
with:
path-to-signatures: 'signatures/version1/cla.json'
path-to-document: 'https://github.com/zaproxy/zaproxy/blob/main/CLA.md'
# branch should not be protected
branch: 'main'
allowlist: zapbot,dependabot
remote-organization-name: 'zaproxy'
remote-repository-name: 'cla'

0 comments on commit 144b730

Please sign in to comment.