Skip to content

Add CodeQL

Add CodeQL #2

Workflow file for this run

---
name: CLA
on:
pull_request:
branches:
- main
types:
- opened
- reopened
- synchronize
- labeled
- unlabeled
permissions:
contents: read
jobs:
# Based on https://stackoverflow.com/questions/71502652/prevent-merging-of-branch-conditionally-based-on-label
fail-for-no-cla:
if: ${{!contains(github.event.pull_request.labels.*.name, 'cla')}}
runs-on: ubuntu-latest
steps:
- name: Fail for missing cla label
run: |
echo "cla label missing. See CONTRIBUTING.md."
exit 1