]> git.ipfire.org Git - thirdparty/tornado.git/commitdiff
ci: Analyze github action configs with zizmor 3463/head
authorBen Darnell <ben@bendarnell.com>
Fri, 21 Feb 2025 14:53:14 +0000 (09:53 -0500)
committerBen Darnell <ben@bendarnell.com>
Fri, 21 Feb 2025 14:55:15 +0000 (09:55 -0500)
.github/workflows/build.yml
.github/workflows/test.yml

index 3308fb72f7c342e8d91843bd7cdb46939b474e94..a4db3506897ce489c23c682c052fe6543830470f 100644 (file)
@@ -17,6 +17,8 @@ on:
   workflow_dispatch:
     # Allow this workflow to be run manually (pushing to testpypi instead of pypi)
 
+permissions: {}
+
 env:
   python-version: '3.9'
 
index f00947fa30465a73767eca0aef830d7e1d836df2..f601494da3ad5efec2338217da406ff9164ea854 100644 (file)
@@ -9,6 +9,8 @@ name: Test
 
 on: pull_request
 
+permissions: {}
+
 jobs:
   # Before starting the full build matrix, run one test configuration
   # and the linter (the `black` linter is especially likely to catch
@@ -103,3 +105,15 @@ jobs:
       - name: Run test suite
         # TODO: figure out what's up with these log messages
         run: py -m tornado.test --fail-if-logs=false
+
+  zizmor:
+    name: Analyze action configs with zizmor
+    runs-on: ubuntu-22.04
+    steps:
+      - uses: actions/checkout@v4
+        with:
+          persist-credentials: false
+      - uses: astral-sh/setup-uv@v5
+        name: Install uv
+      - name: Run zizmor
+        run: uvx zizmor .github/workflows