This GitHub Action verifies whether or not a particular GitHub user has signed the Canonical Contributor Licence Agreement (https://ubuntu.com/legal/contributors).
Required The name of the GitHub user to verify.
Required GitHub token.
'true' if the user has signed the agreement, otherwise 'false'.
name: cla-check
on: [pull_request]
jobs:
cla-check:
runs-on: ubuntu-latest
steps:
- name: Check if CLA signed
id: has_signed_cla
uses: canonical/has-signed-canonical-cla@1.0.2
with:
username: ${{ github.event.pull_request.user.login }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: Verify result
if: steps.has_signed_cla.outputs.has_signed == 'false'
run: exit 1