zizmor 0.9.1__tar.gz → 1.0.1__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of zizmor might be problematic. Click here for more details.
- {zizmor-0.9.1 → zizmor-1.0.1}/.github/ISSUE_TEMPLATE/feature-request.yml +1 -1
- {zizmor-0.9.1 → zizmor-1.0.1}/.github/workflows/ci.yml +4 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/.github/workflows/pypi.yml +22 -23
- {zizmor-0.9.1 → zizmor-1.0.1}/.github/workflows/site.yml +1 -2
- {zizmor-0.9.1 → zizmor-1.0.1}/.github/workflows/zizmor.yml +2 -2
- {zizmor-0.9.1 → zizmor-1.0.1}/Cargo.lock +713 -192
- {zizmor-0.9.1 → zizmor-1.0.1}/Cargo.toml +21 -13
- {zizmor-0.9.1 → zizmor-1.0.1}/PKG-INFO +1 -4
- {zizmor-0.9.1 → zizmor-1.0.1}/README.md +0 -3
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/audits.md +79 -19
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/configuration.md +5 -1
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/development.md +1 -1
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/index.md +0 -6
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/installation.md +33 -5
- zizmor-1.0.1/docs/quickstart.md +88 -0
- zizmor-1.0.1/docs/release-notes.md +401 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/snippets/help.txt +6 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/snippets/render-trophies.py +19 -6
- zizmor-1.0.1/docs/snippets/trophies.md +622 -0
- zizmor-1.0.1/docs/snippets/trophies.txt +110 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/usage.md +207 -15
- {zizmor-0.9.1 → zizmor-1.0.1}/mkdocs.yml +20 -2
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/artipacked.rs +4 -2
- zizmor-1.0.1/src/audit/cache_poisoning.rs +323 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/dangerous_triggers.rs +4 -2
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/excessive_permissions.rs +17 -3
- zizmor-1.0.1/src/audit/github_env.rs +605 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/hardcoded_container_credentials.rs +4 -2
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/impostor_commit.rs +41 -17
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/insecure_commands.rs +42 -9
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/known_vulnerable_actions.rs +31 -3
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/mod.rs +87 -16
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/ref_confusion.rs +35 -14
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/self_hosted_runner.rs +16 -8
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/template_injection.rs +81 -33
- zizmor-1.0.1/src/audit/unpinned_uses.rs +95 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/src/audit/use_trusted_publishing.rs +33 -44
- {zizmor-0.9.1 → zizmor-1.0.1}/src/expr/expr.pest +3 -7
- {zizmor-0.9.1 → zizmor-1.0.1}/src/expr/mod.rs +137 -59
- {zizmor-0.9.1 → zizmor-1.0.1}/src/finding/locate.rs +10 -16
- {zizmor-0.9.1 → zizmor-1.0.1}/src/finding/mod.rs +35 -8
- zizmor-1.0.1/src/github_api.rs +517 -0
- zizmor-1.0.1/src/main.rs +415 -0
- zizmor-1.0.1/src/models/coordinate.rs +272 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/src/models.rs +365 -24
- {zizmor-0.9.1 → zizmor-1.0.1}/src/registry.rs +58 -53
- {zizmor-0.9.1 → zizmor-1.0.1}/src/render.rs +9 -9
- {zizmor-0.9.1 → zizmor-1.0.1}/src/sarif.rs +92 -12
- zizmor-1.0.1/src/state.rs +52 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/src/utils.rs +57 -2
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/acceptance.rs +18 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshot.rs +145 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-10.snap +19 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-11.snap +60 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-12.snap +22 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-13.snap +22 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-14.snap +6 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-2.snap +20 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-3.snap +22 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-4.snap +22 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-5.snap +23 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-6.snap +6 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-7.snap +6 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-8.snap +22 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning-9.snap +22 -0
- zizmor-1.0.1/tests/snapshots/snapshot__cache_poisoning.snap +6 -0
- zizmor-1.0.1/tests/snapshots/snapshot__excessive_permissions-2.snap +15 -0
- zizmor-1.0.1/tests/snapshots/snapshot__excessive_permissions.snap +6 -0
- zizmor-1.0.1/tests/snapshots/snapshot__github_env-2.snap +16 -0
- zizmor-1.0.1/tests/snapshots/snapshot__github_env-3.snap +16 -0
- zizmor-1.0.1/tests/snapshots/snapshot__github_env.snap +33 -0
- zizmor-1.0.1/tests/snapshots/snapshot__insecure_commands-3.snap +32 -0
- zizmor-1.0.1/tests/snapshots/snapshot__template_injection-3.snap +6 -0
- zizmor-1.0.1/tests/snapshots/snapshot__template_injection-4.snap +19 -0
- zizmor-1.0.1/tests/snapshots/snapshot__template_injection-5.snap +39 -0
- zizmor-1.0.1/tests/snapshots/snapshot__template_injection-6.snap +18 -0
- zizmor-1.0.1/tests/snapshots/snapshot__unpinned_uses-3.snap +22 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/caching-disabled-by-default.yml +20 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/caching-enabled-by-default.yml +19 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/caching-not-configurable.yml +19 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/caching-opt-in-boolean-toggle.yml +22 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/caching-opt-in-boolish-toggle.yml +16 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/caching-opt-in-expression.yml +22 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/caching-opt-in-multi-value-toggle.yml +21 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/caching-opt-out.yml +21 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/issue-343-repro.yml +41 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/issue-378-repro.yml +23 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/no-cache-aware-steps.yml +15 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/publisher-step.yml +32 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/workflow-release-branch-trigger.yml +19 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning/workflow-tag-trigger.yml +20 -0
- zizmor-1.0.1/tests/test-data/cache-poisoning.yml +16 -0
- zizmor-1.0.1/tests/test-data/excessive-permissions/issue-336-repro.yml +12 -0
- zizmor-1.0.1/tests/test-data/github-env/action.yml +28 -0
- zizmor-1.0.1/tests/test-data/github-env/github-path.yml +14 -0
- zizmor-1.0.1/tests/test-data/github-env/issue-397-repro.yml +16 -0
- zizmor-1.0.1/tests/test-data/insecure-commands/action.yml +32 -0
- zizmor-1.0.1/tests/test-data/template-injection/issue-22-repro.yml +64 -0
- zizmor-1.0.1/tests/test-data/template-injection/issue-339-repro.yml +30 -0
- zizmor-1.0.1/tests/test-data/template-injection/pr-317-repro.yml +26 -0
- zizmor-1.0.1/tests/test-data/template-injection/static-env.yml +53 -0
- zizmor-1.0.1/tests/test-data/unpinned-uses/action.yml +11 -0
- zizmor-0.9.1/.github/FUNDING.yml +0 -2
- zizmor-0.9.1/.github/release.yml +0 -29
- zizmor-0.9.1/docs/quickstart.md +0 -73
- zizmor-0.9.1/docs/snippets/trophies.md +0 -246
- zizmor-0.9.1/docs/snippets/trophies.txt +0 -46
- zizmor-0.9.1/src/audit/github_env.rs +0 -206
- zizmor-0.9.1/src/audit/unpinned_uses.rs +0 -55
- zizmor-0.9.1/src/github_api.rs +0 -330
- zizmor-0.9.1/src/main.rs +0 -311
- zizmor-0.9.1/src/state.rs +0 -63
- {zizmor-0.9.1 → zizmor-1.0.1}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/.github/dependabot.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/.github/workflows/release.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/.gitignore +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/CONTRIBUTING.md +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/LICENSE +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/Makefile +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/assets/favicon48x48.png +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/assets/rainbow.svg +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/assets/zizmor-demo.gif +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/magiclink.css +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/docs/trophy-case.md +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/pyproject.toml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/site-requirements.txt +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/src/config.rs +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/common.rs +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__artipacked-2.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__artipacked-3.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__artipacked.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__cant_retrieve.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__conflicting_online_options-2.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__conflicting_online_options-3.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__conflicting_online_options.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__insecure_commands-2.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__insecure_commands.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__self_hosted-2.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__self_hosted-3.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__self_hosted-4.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__self_hosted-5.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__self_hosted-6.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__self_hosted-7.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__self_hosted-8.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__self_hosted.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__template_injection-2.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__template_injection.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__unpinned_uses-2.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/snapshots/snapshot__unpinned_uses.snap +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/artipacked.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/excessive-permissions.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/github_env.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/hardcoded-credentials.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/inlined-ignores.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/insecure-commands.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/self-hosted/issue-283-repro.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/self-hosted/self-hosted-matrix-dimension.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/self-hosted/self-hosted-matrix-exclusion.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/self-hosted/self-hosted-matrix-inclusion.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/self-hosted/self-hosted-runner-group.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/self-hosted/self-hosted-runner-label.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/self-hosted.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/template-injection/template-injection-dynamic-matrix.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/template-injection/template-injection-static-matrix.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/template-injection.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/unpinned-uses.yml +0 -0
- {zizmor-0.9.1 → zizmor-1.0.1}/tests/test-data/use-trusted-publishing.yml +0 -0
|
@@ -7,7 +7,7 @@ body:
|
|
|
7
7
|
- type: markdown
|
|
8
8
|
attributes:
|
|
9
9
|
value: |
|
|
10
|
-
|
|
10
|
+
Thanks for making a `zizmor` feature request!
|
|
11
11
|
|
|
12
12
|
Please read the following parts of this form carefully.
|
|
13
13
|
Invalid or incomplete submissions take longer to triage,
|
|
@@ -17,6 +17,8 @@ jobs:
|
|
|
17
17
|
- name: Format
|
|
18
18
|
run: cargo fmt && git diff --exit-code
|
|
19
19
|
|
|
20
|
+
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2
|
|
21
|
+
|
|
20
22
|
- name: Lint
|
|
21
23
|
run: cargo clippy -- -D warnings
|
|
22
24
|
|
|
@@ -27,6 +29,8 @@ jobs:
|
|
|
27
29
|
with:
|
|
28
30
|
persist-credentials: false
|
|
29
31
|
|
|
32
|
+
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2
|
|
33
|
+
|
|
30
34
|
- name: Test
|
|
31
35
|
run: cargo test
|
|
32
36
|
|
|
@@ -6,7 +6,6 @@ on:
|
|
|
6
6
|
- main
|
|
7
7
|
tags:
|
|
8
8
|
- '*'
|
|
9
|
-
pull_request:
|
|
10
9
|
workflow_dispatch:
|
|
11
10
|
|
|
12
11
|
permissions:
|
|
@@ -32,18 +31,18 @@ jobs:
|
|
|
32
31
|
- runner: ubuntu-22.04
|
|
33
32
|
target: ppc64le
|
|
34
33
|
steps:
|
|
35
|
-
- uses: actions/checkout@v4
|
|
34
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
36
35
|
with:
|
|
37
36
|
persist-credentials: false
|
|
38
37
|
- name: Build wheels
|
|
39
|
-
uses: PyO3/maturin-action@v1
|
|
38
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
40
39
|
with:
|
|
41
40
|
target: ${{ matrix.platform.target }}
|
|
42
41
|
args: --release --out dist
|
|
43
|
-
sccache: '
|
|
42
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
44
43
|
manylinux: auto
|
|
45
44
|
- name: Upload wheels
|
|
46
|
-
uses: actions/upload-artifact@v4
|
|
45
|
+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
|
|
47
46
|
with:
|
|
48
47
|
name: wheels-linux-${{ matrix.platform.target }}
|
|
49
48
|
path: dist
|
|
@@ -62,18 +61,18 @@ jobs:
|
|
|
62
61
|
- runner: ubuntu-22.04
|
|
63
62
|
target: armv7
|
|
64
63
|
steps:
|
|
65
|
-
- uses: actions/checkout@v4
|
|
64
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
66
65
|
with:
|
|
67
66
|
persist-credentials: false
|
|
68
67
|
- name: Build wheels
|
|
69
|
-
uses: PyO3/maturin-action@v1
|
|
68
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
70
69
|
with:
|
|
71
70
|
target: ${{ matrix.platform.target }}
|
|
72
71
|
args: --release --out dist
|
|
73
|
-
sccache: '
|
|
72
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
74
73
|
manylinux: musllinux_1_2
|
|
75
74
|
- name: Upload wheels
|
|
76
|
-
uses: actions/upload-artifact@v4
|
|
75
|
+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
|
|
77
76
|
with:
|
|
78
77
|
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
79
78
|
path: dist
|
|
@@ -88,17 +87,17 @@ jobs:
|
|
|
88
87
|
- runner: windows-latest
|
|
89
88
|
target: x86
|
|
90
89
|
steps:
|
|
91
|
-
- uses: actions/checkout@v4
|
|
90
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
92
91
|
with:
|
|
93
92
|
persist-credentials: false
|
|
94
93
|
- name: Build wheels
|
|
95
|
-
uses: PyO3/maturin-action@v1
|
|
94
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
96
95
|
with:
|
|
97
96
|
target: ${{ matrix.platform.target }}
|
|
98
97
|
args: --release --out dist
|
|
99
|
-
sccache: '
|
|
98
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
100
99
|
- name: Upload wheels
|
|
101
|
-
uses: actions/upload-artifact@v4
|
|
100
|
+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
|
|
102
101
|
with:
|
|
103
102
|
name: wheels-windows-${{ matrix.platform.target }}
|
|
104
103
|
path: dist
|
|
@@ -113,17 +112,17 @@ jobs:
|
|
|
113
112
|
- runner: macos-14
|
|
114
113
|
target: aarch64
|
|
115
114
|
steps:
|
|
116
|
-
- uses: actions/checkout@v4
|
|
115
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
117
116
|
with:
|
|
118
117
|
persist-credentials: false
|
|
119
118
|
- name: Build wheels
|
|
120
|
-
uses: PyO3/maturin-action@v1
|
|
119
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
121
120
|
with:
|
|
122
121
|
target: ${{ matrix.platform.target }}
|
|
123
122
|
args: --release --out dist
|
|
124
|
-
sccache: '
|
|
123
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
125
124
|
- name: Upload wheels
|
|
126
|
-
uses: actions/upload-artifact@v4
|
|
125
|
+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
|
|
127
126
|
with:
|
|
128
127
|
name: wheels-macos-${{ matrix.platform.target }}
|
|
129
128
|
path: dist
|
|
@@ -131,16 +130,16 @@ jobs:
|
|
|
131
130
|
sdist:
|
|
132
131
|
runs-on: ubuntu-latest
|
|
133
132
|
steps:
|
|
134
|
-
- uses: actions/checkout@v4
|
|
133
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
135
134
|
with:
|
|
136
135
|
persist-credentials: false
|
|
137
136
|
- name: Build sdist
|
|
138
|
-
uses: PyO3/maturin-action@v1
|
|
137
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
139
138
|
with:
|
|
140
139
|
command: sdist
|
|
141
140
|
args: --out dist
|
|
142
141
|
- name: Upload sdist
|
|
143
|
-
uses: actions/upload-artifact@v4
|
|
142
|
+
uses: actions/upload-artifact@6f51ac03b9356f520e9adb1b1b7802705f340c2b # v4
|
|
144
143
|
with:
|
|
145
144
|
name: wheels-sdist
|
|
146
145
|
path: dist
|
|
@@ -161,14 +160,14 @@ jobs:
|
|
|
161
160
|
# Used to generate artifact attestation
|
|
162
161
|
attestations: write
|
|
163
162
|
steps:
|
|
164
|
-
- uses: actions/download-artifact@v4
|
|
163
|
+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
|
|
165
164
|
- name: Generate artifact attestation
|
|
166
|
-
uses: actions/attest-build-provenance@v2
|
|
165
|
+
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2
|
|
167
166
|
with:
|
|
168
167
|
subject-path: 'wheels-*/*'
|
|
169
168
|
- name: Publish to PyPI
|
|
170
169
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
171
|
-
uses: PyO3/maturin-action@v1
|
|
170
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
172
171
|
with:
|
|
173
172
|
command: upload
|
|
174
173
|
args: --non-interactive --skip-existing wheels-*/*
|
|
@@ -4,7 +4,6 @@ on:
|
|
|
4
4
|
push:
|
|
5
5
|
branches:
|
|
6
6
|
- main
|
|
7
|
-
- site-staging
|
|
8
7
|
|
|
9
8
|
workflow_dispatch:
|
|
10
9
|
|
|
@@ -31,7 +30,7 @@ jobs:
|
|
|
31
30
|
persist-credentials: false
|
|
32
31
|
|
|
33
32
|
- name: Install the latest version of uv
|
|
34
|
-
uses: astral-sh/setup-uv@
|
|
33
|
+
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v3
|
|
35
34
|
|
|
36
35
|
- name: build site
|
|
37
36
|
run: make site
|
|
@@ -19,13 +19,13 @@ jobs:
|
|
|
19
19
|
with:
|
|
20
20
|
persist-credentials: false
|
|
21
21
|
- name: Install the latest version of uv
|
|
22
|
-
uses: astral-sh/setup-uv@v4
|
|
22
|
+
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v4
|
|
23
23
|
- name: Run zizmor 🌈
|
|
24
24
|
run: uvx zizmor --format sarif . > results.sarif
|
|
25
25
|
env:
|
|
26
26
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
27
27
|
- name: Upload SARIF file
|
|
28
|
-
uses: github/codeql-action/upload-sarif@
|
|
28
|
+
uses: github/codeql-action/upload-sarif@48ab28a6f5dbc2a99bf1e0131198dd8f1df78169 # v3.28.0
|
|
29
29
|
with:
|
|
30
30
|
sarif_file: results.sarif
|
|
31
31
|
category: zizmor
|