Skip to content

Commit 24ce731

Browse files
authored
chore: use zizmor action and resolve findings (#261)
* chore(ci): use zizmor action Signed-off-by: Mike Fiedler <miketheman@gmail.com> * chore: ratchet down findings Signed-off-by: Mike Fiedler <miketheman@gmail.com> --------- Signed-off-by: Mike Fiedler <miketheman@gmail.com>
1 parent e715d2a commit 24ce731

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

.github/dependabot.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@ updates:
88
all:
99
patterns:
1010
- "*"
11+
cooldown:
12+
default-days: 7
1113
- package-ecosystem: "github-actions"
1214
directory: "/"
1315
schedule:
1416
interval: "daily"
17+
cooldown:
18+
default-days: 7

.github/workflows/release.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414
id-token: write
1515
steps:
1616
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
17+
with:
18+
persist-credentials: false
1719
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1820
with:
1921
python-version: '3.11'
@@ -32,4 +34,4 @@ jobs:
3234
--outdir dist/
3335
.
3436
- name: Publish package distributions to PyPI
35-
uses: pypa/gh-action-pypi-publish@release/v1
37+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # v1.13.0

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ name: CI
22

33
on: [push, pull_request]
44

5+
permissions: {}
6+
57
jobs:
68
build:
79
runs-on: ubuntu-latest
810
steps:
911
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
12+
with:
13+
persist-credentials: false
1014
- name: Set up Python
1115
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1216
with:

.github/workflows/zizmor.yml

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,5 @@ jobs:
1818
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919
with:
2020
persist-credentials: false
21-
- name: Setup Python
22-
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
23-
- name: Run zizmor
24-
run: pipx run zizmor --format sarif . > results.sarif
25-
- name: Upload SARIF file
26-
uses: github/codeql-action/upload-sarif@45cbd0c69e560cd9e7cd7f8c32362050c9b7ded2 # v4.32.2
27-
with:
28-
# Path to SARIF file relative to the root of the repository
29-
sarif_file: results.sarif
30-
# Optional category for the results
31-
# Used to differentiate multiple results for one commit
32-
category: zizmor
21+
- name: Run zizmor 🌈
22+
uses: zizmorcore/zizmor-action@0dce2577a4760a2749d8cfb7a84b7d5585ebcb7d # v0.5.0

0 commit comments

Comments
 (0)