Skip to content

Add GH action to check SPDX license header and copyright #6

Add GH action to check SPDX license header and copyright

Add GH action to check SPDX license header and copyright #6

Workflow file for this run

name: spdx
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize, reopened]
branches: ["main"]
jobs:
check-spdx-headers:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: Get files for PR
uses: tj-actions/changed-files@v44
id: changed-files
with:
separator: "," # Space-separated output
- name: Verify SPDX headers
uses: rucoder/spdx@rucoder/file-list
with:
licenses: |-
Apache-2.0
MIT
files: ${{ steps.changed-files.outputs.all_modified_files }}