[PATCH 9/9] workflow: add reuse job to check for REUSE compliance

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The linter ensures we can catch problems early on and keeps the codebase
reuse compliant. A big step for ard for all downstream users who care
about license compliance and SBOM generation.

As extra step we generate a SBOM file as artifact.

Signed-off-by: Stefan Schmidt <stefan@xxxxxxxxxxxxxxxxxx>
---
 .github/workflows/reuse.yml | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 .github/workflows/reuse.yml

diff --git a/.github/workflows/reuse.yml b/.github/workflows/reuse.yml
new file mode 100644
index 0000000..194a7d7
--- /dev/null
+++ b/.github/workflows/reuse.yml
@@ -0,0 +1,19 @@
+# SPDX-FileCopyrightText: 2023 Stefan Schmidt <stefan@xxxxxxxxxxxxxxxxxx>
+#
+# SPDX-License-Identifier: ISC
+
+name: Check for REUSE compliance of wpan-tools
+on: push
+
+jobs:
+  reuse:
+    runs-on: ubuntu-latest
+    steps:
+    - name: Check out repository
+      uses: actions/checkout@v4
+    - name: Install reuse tool
+      run: pip3 install reuse
+    - name: Run reuse lint
+      run: reuse lint
+    - name: Create SBOM
+      run: reuse spdx > sbom.txt
-- 
2.41.0




[Index of Archives]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux