]> Untitled Git - bdk/commitdiff
Add scheduled audit check in CI
authorRiccardo Casatta <riccardo@casatta.it>
Thu, 19 Nov 2020 14:18:04 +0000 (15:18 +0100)
committerRiccardo Casatta <riccardo@casatta.it>
Thu, 19 Nov 2020 14:18:04 +0000 (15:18 +0100)
.github/workflows/audit.yml [new file with mode: 0644]

diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
new file mode 100644 (file)
index 0000000..6143cca
--- /dev/null
@@ -0,0 +1,19 @@
+name: Audit
+
+on:
+  push:
+    paths:
+      - '**/Cargo.toml'
+      - '**/Cargo.lock'
+  schedule:
+    - cron: '0 0 * * 0' # Once per week
+
+jobs:
+
+  security_audit:
+    runs-on: ubuntu-20.04
+    steps:
+      - uses: actions/checkout@v2
+      - uses: actions-rs/audit-check@v1
+        with:
+          token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file