From b366ebd28bcb44492719b487f9dd34b6da56d23f Mon Sep 17 00:00:00 2001 From: Mason Reed Date: Thu, 13 Feb 2025 13:26:44 -0500 Subject: Add licensing check for Rust code If we add new rust dependencies we should now be alerted when a new license type is added. --- .github/workflows/rust.yml | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to '.github/workflows') 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 -- cgit v1.3.1