summaryrefslogtreecommitdiffstats
path: root/.github/workflows/audit.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/audit.yml')
-rw-r--r--.github/workflows/audit.yml21
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
new file mode 100644
index 00000000..52ea0142
--- /dev/null
+++ b/.github/workflows/audit.yml
@@ -0,0 +1,21 @@
+name: Security audit
+
+on:
+ schedule:
+ # Runs at 00:00 UTC everyday
+ - cron: '0 0 * * *'
+ push:
+ paths:
+ - '**/Cargo.toml'
+ - '**/Cargo.lock'
+
+jobs:
+ audit:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout repository
+ uses: actions/checkout@v2
+ - uses: actions-rs/audit-check@v1
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}
+