Skip to content

isabella232/has-signed-canonical-cla

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

has-signed-canonical-cla

This GitHub Action verifies whether or not a particular GitHub user has signed the Canonical Contributor Licence Agreement (https://ubuntu.com/legal/contributors).

Inputs

username

Required The name of the GitHub user to verify.

token

Required GitHub token.

Outputs

has_signed

'true' if the user has signed the agreement, otherwise 'false'.

Example usage

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

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%