From 8e966f98e7543372980f80ea30f2543c1d4b5e32 Mon Sep 17 00:00:00 2001 From: thinkgos Date: Sat, 17 Feb 2024 01:27:42 +0000 Subject: [PATCH] feature: add CI security audit --- .github/workflows/audit.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/audit.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 0000000..6e0b536 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,30 @@ +name: Security audit + +on: + pull_request: + paths: + # Run if workflow changes + - '.github/workflows/audit.yml' + # Run on changed dependencies + - '**/Cargo.toml' + - '**/Cargo.lock' + # Run if the configuration file changes + - '**/audit.toml' + push: + paths: + # Run if workflow changes + - '.github/workflows/audit.yml' + # Run on changed dependencies + - '**/Cargo.toml' + - '**/Cargo.lock' + # Run if the configuration file changes + - '**/audit.toml' + +jobs: + security_audit: + runs-on: ubuntu-latest + steps: + - name: Set up Rust + uses: actions/checkout@v4 + - name: Run audit + uses: actions-rust-lang/audit@v1 \ No newline at end of file