Files
wandb__skills/.github/workflows/cla.yaml
Jason Zhao b7c5d6a24c Add CLA workflow and agreement (#8)
Set up contributor-assistant GitHub Action to require CLA signatures
on pull requests, matching the wandb/weave CLA setup.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-06 14:27:09 -07:00

30 lines
1.0 KiB
YAML

name: "cla"
on:
issue_comment:
types: [created]
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
contents: write
pull-requests: write
statuses: write
jobs:
CLAAssistant:
runs-on: ubuntu-latest
steps:
- name: "check-signature"
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 }}
with:
path-to-signatures: "cla/signatures/version1/cla.json"
path-to-document: "https://github.com/wandb/skills/blob/main/cla.md"
# branch should not be protected
branch: "cla"
allowlist: actions-user, dependabot[bot], wandbmachine, jlzhao27, zaysola