summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-02-13 13:26:44 -0500
committerMason Reed <35282038+emesare@users.noreply.github.com>2025-02-13 13:59:09 -0500
commitb366ebd28bcb44492719b487f9dd34b6da56d23f (patch)
tree1d911a5aceb38db38a09bd90bc528f859647d432 /.github
parent5365728462076834832090072788972585260876 (diff)
Add licensing check for Rust code
If we add new rust dependencies we should now be alerted when a new license type is added.
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/rust.yml20
1 files changed, 19 insertions, 1 deletions
diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml
index 747e152f..5d06aaa4 100644
--- a/.github/workflows/rust.yml
+++ b/.github/workflows/rust.yml
@@ -53,4 +53,22 @@ jobs:
- name: Typo Check
uses: crate-ci/typos@v1.29.4
with:
- files: ./rust \ No newline at end of file
+ files: ./rust
+
+ # Check licensing and produce a list of licenses
+ licensing:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Install cargo-about
+ uses: baptiste0928/cargo-install@v3
+ with:
+ crate: cargo-about
+ version: "0.6.6"
+ - name: Run license check
+ run: cargo about generate about.hbs > license.html
+ - name: Archive license file
+ uses: actions/upload-artifact@v4
+ with:
+ name: license
+ path: license.html \ No newline at end of file