aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/security-audit.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/security-audit.yml')
-rw-r--r--.github/workflows/security-audit.yml24
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml
new file mode 100644
index 0000000..6d39adc
--- /dev/null
+++ b/.github/workflows/security-audit.yml
@@ -0,0 +1,24 @@
+name: Security Audit
+on:
+ pull_request:
+ paths: Cargo.lock
+ push:
+ branches: master
+ paths: Cargo.lock
+ schedule:
+ - cron: "0 0 * * *"
+
+jobs:
+ security_audit:
+ name: Security Audit
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v1
+ - name: Cache cargo bin
+ uses: actions/cache@v1
+ with:
+ path: ~/.cargo/bin
+ key: ${{ runner.os }}-cargo-audit-v0.14.1
+ - uses: actions-rs/audit-check@v1
+ with:
+ token: ${{ secrets.GITHUB_TOKEN }}