diff --git a/workflow-templates/reuse.properties.json b/workflow-templates/reuse.properties.json new file mode 100644 index 0000000..723d90d --- /dev/null +++ b/workflow-templates/reuse.properties.json @@ -0,0 +1,5 @@ +{ + "name": "REUSE compliance check", + "description": "Check SPDX headers and licensing metadata for REUSE compliance.", + "iconName": "octicon verified" +} diff --git a/workflow-templates/reuse.yml b/workflow-templates/reuse.yml new file mode 100644 index 0000000..d68ce48 --- /dev/null +++ b/workflow-templates/reuse.yml @@ -0,0 +1,28 @@ +# This workflow is maintained by LibreCodeCoop/github-workflows and published +# through the LibreCodeCoop organization workflow catalog. +# +# https://github.com/LibreCodeCoop/github-workflows +# https://docs.github.com/en/actions/learn-github-actions/sharing-workflows-with-your-organization + +# SPDX-FileCopyrightText: 2022 Free Software Foundation Europe e.V. +# +# SPDX-License-Identifier: CC0-1.0 + +name: REUSE Compliance Check + +on: [pull_request] + +permissions: + contents: read + +jobs: + reuse-compliance-check: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 + with: + persist-credentials: false + + - name: REUSE Compliance Check + uses: fsfe/reuse-action@676e2d560c9a403aa252096d99fcab3e1132b0f5 # v6.0.0