]> Untitled Git - bdk/commitdiff
ci: update audit.yml workflow to use actions-rust-lang/audit
authorSteve Myers <steve@notmandatory.org>
Mon, 14 Oct 2024 20:51:52 +0000 (15:51 -0500)
committerSteve Myers <steve@notmandatory.org>
Thu, 17 Oct 2024 16:41:49 +0000 (11:41 -0500)
The old actions-rs/audit-check is no longer maintained.

.github/workflows/audit.yml

index a137d332045846e354396efc34e614754a418ba2..e0da8e8552d3b76be25fdd705cd28564963df559 100644 (file)
@@ -3,17 +3,26 @@ name: Audit
 on:
   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'
+  # Rerun periodically to pick up new advisories
   schedule:
-    - cron: '0 0 * * 0' # Once per week
+    - cron: '0 0 * * *' # Nightly
+  # Run manually
+  workflow_dispatch:
 
 jobs:
-
-  security_audit:
-    runs-on: ubuntu-20.04
+  audit:
+    runs-on: ubuntu-latest
+    permissions:
+      contents: read
+      issues: write
     steps:
       - uses: actions/checkout@v4
-      - uses: actions-rs/audit-check@v1
-        with:
-          token: ${{ secrets.GITHUB_TOKEN }}
\ No newline at end of file
+      - uses: actions-rust-lang/audit@v1
+        name: Audit Rust Dependencies