]> Untitled Git - bdk/commitdiff
ci: add zizmor github actions security analysis workflow
authorSteve Myers <steve@notmandatory.org>
Tue, 28 Jan 2025 02:19:30 +0000 (20:19 -0600)
committerSteve Myers <steve@notmandatory.org>
Tue, 20 May 2025 17:56:13 +0000 (12:56 -0500)
.github/workflows/code_coverage.yml
.github/workflows/cont_integration.yml
.github/workflows/cron-update-rust.yml
.github/workflows/zizmor.yml [new file with mode: 0644]

index c768ee44312cac37624959d590258419857e89f5..618e5dc0d9e57823431504d0f6ab3b29b583387a 100644 (file)
@@ -2,6 +2,8 @@ on: [push, pull_request]
 
 name: Code Coverage
 
+permissions: {}
+
 jobs:
   Codecov:
     name: Code Coverage
index 432433a7e1ee5ca322849375f648c2c8baa39e41..f4ad6114a78dee17595ac5a6fefcb2dd54c0e4da 100644 (file)
@@ -2,6 +2,8 @@ on: [push, pull_request]
 
 name: CI
 
+permissions: {}
+
 jobs:
 
   prepare:
index 2fc212ebde36b183bad2114b1312fa83874338e9..1264203d598e98df8c095b6f5d3856867b889e16 100644 (file)
@@ -1,4 +1,7 @@
 name: Update rust version
+
+permissions: {}
+
 on:
   schedule:
     - cron: "0 0 15 * *" # At 00:00 on day-of-month 15.
diff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.yml
new file mode 100644 (file)
index 0000000..0c2aa08
--- /dev/null
@@ -0,0 +1,35 @@
+name: Zizmor Actions Analysis
+
+on:
+  push:
+    branches: ["master"]
+  pull_request:
+    branches: ["**"]
+
+jobs:
+  zizmor:
+    runs-on: ubuntu-latest
+    permissions:
+      security-events: write
+    steps:
+      - name: Checkout repository
+        uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+
+      - name: Rust Cache
+        uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
+
+      - name: Install zizmor
+        run: cargo install zizmor --locked --version 1.6.0
+
+      - name: Run zizmor ðŸŒˆ
+        run: zizmor --format sarif . > results.sarif
+        env:
+          GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+
+      - name: Upload SARIF file
+        uses: github/codeql-action/upload-sarif@v3
+        with:
+          sarif_file: results.sarif
+          category: zizmor
\ No newline at end of file