Synvael/.forgejo/workflows/cla.yml
Serkyo 18a2644c44
Some checks failed
CI / Rust Tests (push) Failing after 3s
CI / Lua Lint & Format (push) Failing after 38s
CI / LFS Pointer Guard (push) Has been cancelled
CI / Rust Check & Lint (push) Failing after 19s
ci(workspace): use fully qualified github urls for actions
2026-08-07 00:38:00 +02:00

37 lines
1.2 KiB
YAML

name: CLA Check
on:
pull_request_target:
types: [opened, reopened, synchronize]
issue_comment:
types: [created]
permissions:
contents: write
pull-requests: write
statuses: write
jobs:
cla-check:
# Run on PR events, or on issue comments that are on PRs (not plain issues).
if: >
github.event_name == 'pull_request_target' ||
(github.event_name == 'issue_comment' && github.event.issue.pull_request)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: https://github.com/actions/checkout@v4
with:
# pull_request_target runs on the base branch; check out the base
# so the signatures file is from the canonical source.
ref: ${{ github.event.pull_request.base.ref || github.event.repository.default_branch }}
token: ${{ secrets.GITHUB_TOKEN }}
- name: CLA enforcement
uses: https://github.com/actions/github-script@v7
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const claCheck = require('${{ github.workspace }}/.forgejo/scripts/cla-check.js');
await claCheck({ github, context, core });