]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add a daily workflow to run `cargo audit` against our Rust deps
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 25 Sep 2025 14:42:38 +0000 (16:42 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 25 Sep 2025 15:10:09 +0000 (17:10 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
.github/workflows/daily-rust-audit.yml [new file with mode: 0644]

diff --git a/.github/workflows/daily-rust-audit.yml b/.github/workflows/daily-rust-audit.yml
new file mode 100644 (file)
index 0000000..e3bc51b
--- /dev/null
@@ -0,0 +1,31 @@
+name: Security audit of Rust dependencies
+on:
+  schedule:
+    - cron: '0 0 * * *'
+
+permissions:
+  contents: read
+  issues: write # to create issues
+  checks: write # to create checks
+
+jobs:
+  audit:
+    runs-on: ubuntu-latest
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          fetch-depth: 5
+          submodules: recursive
+          persist-credentials: false
+
+      - name: Check recursor's Rust library dependencies
+        uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
+          working-directory: pdns/recursordist/rec-rust-lib/rust
+
+      - name: Check DNSdist's Rust library dependencies
+        uses: rustsec/audit-check@69366f33c96575abad1ee0dba8212993eecbe998
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
+          working-directory: pdns/dnsdistdist/dnsdist-rust-lib/rust