From 5bc9d1cadae0a443936c118209160d22dab4497a Mon Sep 17 00:00:00 2001 From: marshall_lee Date: Sat, 7 Dec 2024 18:54:59 +0800 Subject: [PATCH] add cargo-deny to CI --- .github/workflows/pr-cargo-deny.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pr-cargo-deny.yml diff --git a/.github/workflows/pr-cargo-deny.yml b/.github/workflows/pr-cargo-deny.yml new file mode 100644 index 0000000..5bf1a8d --- /dev/null +++ b/.github/workflows/pr-cargo-deny.yml @@ -0,0 +1,23 @@ +name: Pull Request Security Audit + +on: + push: + paths: + - '**/Cargo.toml' + pull_request: + paths: + - '**/Cargo.toml' + +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + cargo-deny: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: EmbarkStudios/cargo-deny-action@v2 \ No newline at end of file