Skip to content
You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
check-circle

GitHub Action

REUSE Compliance Check

v1.0 Pre-release

REUSE Compliance Check

check-circle

REUSE Compliance Check

Check your project's REUSE compliance for clear and simple licensing and copyright

Installation

Copy and paste the following snippet into your .yml file.

              

- name: REUSE Compliance Check

uses: fsfe/reuse-action@v1.0

Learn more about this action in fsfe/reuse-action

Choose a version

REUSE Compliance Check

REUSE status

You struggle with how to properly do licensing and copyright in your project? REUSE helps you in three simple steps! Read more on reuse.software and run the short tutorial to learn how to make your licensing and copyright easy and clear.

This action allows users to check for compliance with the REUSE best practices if they prefer GitHub actions. It is one of many options for projects to include REUSE in their workflows. Please see the help for developers to get an overview.

Features

This action runs the reuse lint command over your repository to check the following information:

  • Is copyright and licensing information available for every single file?
  • Do full license texts exist for all found license identifiers?
  • Are there any other problems with detecting copyright and licensing information?

To make use of the other features the REUSE helper tool offers, for example adding comment headers semi-automatically and downloading license texts, please install the tool on your computer.

Example usage

By default, you can include the following lines in your workflow .yml file to run the lint subcommand:

name: REUSE Compliance Check

on: [push, pull_request]

jobs:
  test:
    runs-on: ubuntu-latest
    steps: 
    - uses: actions/checkout@master
    - name: REUSE Compliance Check
      uses: fsfe/reuse-action@master

If you would like to run other subcommands, you could use the following snippet which outputs a the SPDX bill of materials:

    - name: REUSE Compliance Check
      uses: fsfe/reuse-action@master
      with:
        cmd: 'spdx'

Please note that due to Github restrictions it is not possible to pass extra arguments like --include-submodules to the cmd input.

Inputs Description

Name Requirement Default Description
cmd required lint The subcommand for the REUSE helper tool. Read the tool's documentation for all available subcommands.

License

This action itself is REUSE compliant, so copyright and licensing information is stored in every file or as close as possible to it. At the time of writing, all files are licensed under GPL-3.0-or-later, copyright Free Software Foundation Europe e.V..

Using the REUSE helper tool, you can run reuse spdx to get a full bill of materials.