Skip to content

Copyright and License management solutions

Notifications You must be signed in to change notification settings

dev-build-deploy/reuse-me

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

ReuseMe - License and Copyright Management

ReuseMe provides a Pre-commit hook, Command Line Interface and integration with GitHub Actions for managing software licensing and copyright attributions, including support for:

* Generation of an SPDX 2.3 compatible Software Bill of Materials (SBOM)
{
  "SPDXID": "SPDXRef-DOCUMENT",
  "spdxVersion": "SPDX-2.3",
  "name": "reuse-me",
  "documentNamespace": "http://spdx.org/spdxdocs/spdx-v2.3-HASH",
  "dataLicense": "CC0-1.0",
  "creationInfo": {
    "comment": "Generated by ReuseMe",
    "created": "2023-06-15T12:45:54.800Z",
    "creators": [
      ...
    ]
    ...
  }
  ...
}

⚠️ NOTE ⚠️

ReuseMe (and its owner) are not part of a law firm and, as such, the owner nor the application provide legal advise. Using ReuseME does not constitute legal advice or create an attorney-client relationship.

ReuseMe is created for the aggregation of Copyright and License information provided by the users in the files stored in their repositories. In the end, the users of ReuseMe are responsible for the correctness of the generated Software Bill of Materials, the associated licenses, and attributions. For that reason, ReuseMe is provided on an "as-is" basis and makes no warranties regarding any information or licenses provided on or through it, and disclaims liability for damages resulting from using the application.

Pre-commit hook

You can add ReuseMe as a pre-commit by:

  1. Installing pre-commit
  2. Including ReuseMe in your .pre-commit.config.yaml file, e.g.:
repos:
- repo: https://github.com/dev-build-deploy/reuse-me
  rev: v0.8.0
  hooks:
  - id: reuse-me
  1. Installing the hooks
$ pre-commit install

CICD validation (GitHub Actions)

The basic workflow can be set up as such:

name: Copyright & Licenses
on:
  pull_request:

jobs:
  reuse-me:
    name: REUSE compliance
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - uses: dev-build-deploy/reuse-me@v0

You can find more details in the dedicated documentation

Local Development (Command Line Interface)

Performing local validation is as simple as running the reuse-me CLI tool;

$ reuse-me

You can find more details in the dedicated documentation

Help?

For more support, please refer to our Basic guidelines or the excellent REUSE FAQ

Contributing

If you have suggestions for how reuse-me could be improved, or want to report a bug, open an issue! We'd love all and any contributions.

For more, check out the Contributing Guide.

License

MIT © 2023 Kevin de Jong <monkaii@hotmail.com>