zizmor 0.8.0__tar.gz → 1.2.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.8.0 → zizmor-1.2.1}/.github/ISSUE_TEMPLATE/feature-request.yml +1 -1
- zizmor-1.2.1/.github/workflows/ci.yml +67 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/.github/workflows/pypi.yml +40 -36
- {zizmor-0.8.0 → zizmor-1.2.1}/.github/workflows/release.yml +2 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/.github/workflows/site.yml +1 -2
- {zizmor-0.8.0 → zizmor-1.2.1}/.github/workflows/zizmor.yml +4 -6
- {zizmor-0.8.0 → zizmor-1.2.1}/Cargo.lock +915 -243
- {zizmor-0.8.0 → zizmor-1.2.1}/Cargo.toml +30 -19
- zizmor-1.2.1/Makefile +27 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/PKG-INFO +24 -5
- {zizmor-0.8.0 → zizmor-1.2.1}/README.md +21 -4
- {zizmor-0.8.0 → zizmor-1.2.1}/docs/audits.md +238 -35
- {zizmor-0.8.0 → zizmor-1.2.1}/docs/configuration.md +5 -1
- {zizmor-0.8.0 → zizmor-1.2.1}/docs/development.md +33 -7
- {zizmor-0.8.0 → zizmor-1.2.1}/docs/index.md +8 -6
- zizmor-1.2.1/docs/installation.md +127 -0
- zizmor-1.2.1/docs/quickstart.md +88 -0
- zizmor-1.2.1/docs/release-notes.md +481 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/docs/snippets/help.txt +6 -2
- zizmor-1.2.1/docs/snippets/render-sponsors.py +56 -0
- zizmor-1.2.1/docs/snippets/render-trophies.py +40 -0
- zizmor-1.2.1/docs/snippets/sponsors.html +15 -0
- zizmor-1.2.1/docs/snippets/sponsors.json +7 -0
- zizmor-1.2.1/docs/snippets/trophies.md +782 -0
- zizmor-1.2.1/docs/snippets/trophies.txt +151 -0
- zizmor-1.2.1/docs/trophy-case.md +18 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/docs/usage.md +222 -23
- {zizmor-0.8.0 → zizmor-1.2.1}/mkdocs.yml +21 -2
- zizmor-1.2.1/pyproject.toml +17 -0
- zizmor-1.2.1/src/audit/artipacked.rs +148 -0
- zizmor-1.2.1/src/audit/bot_conditions.rs +199 -0
- zizmor-1.2.1/src/audit/cache_poisoning.rs +331 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/src/audit/dangerous_triggers.rs +5 -3
- zizmor-1.2.1/src/audit/excessive_permissions.rs +225 -0
- zizmor-1.2.1/src/audit/github_env.rs +607 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/src/audit/hardcoded_container_credentials.rs +10 -12
- {zizmor-0.8.0 → zizmor-1.2.1}/src/audit/impostor_commit.rs +55 -31
- zizmor-1.2.1/src/audit/insecure_commands.rs +164 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/src/audit/known_vulnerable_actions.rs +42 -12
- zizmor-1.2.1/src/audit/mod.rs +222 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/src/audit/ref_confusion.rs +48 -26
- zizmor-1.2.1/src/audit/secrets_inherit.rs +50 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/src/audit/self_hosted_runner.rs +53 -25
- {zizmor-0.8.0 → zizmor-1.2.1}/src/audit/template_injection.rs +118 -96
- zizmor-1.2.1/src/audit/unpinned_uses.rs +100 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/src/audit/use_trusted_publishing.rs +38 -46
- {zizmor-0.8.0 → zizmor-1.2.1}/src/config.rs +4 -3
- {zizmor-0.8.0 → zizmor-1.2.1}/src/expr/expr.pest +4 -8
- {zizmor-0.8.0 → zizmor-1.2.1}/src/expr/mod.rs +144 -59
- {zizmor-0.8.0 → zizmor-1.2.1}/src/finding/locate.rs +10 -16
- {zizmor-0.8.0 → zizmor-1.2.1}/src/finding/mod.rs +37 -10
- zizmor-1.2.1/src/github_api.rs +518 -0
- zizmor-1.2.1/src/main.rs +423 -0
- zizmor-1.2.1/src/models/coordinate.rs +282 -0
- zizmor-1.2.1/src/models/uses.rs +147 -0
- zizmor-1.2.1/src/models.rs +894 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/src/registry.rs +119 -92
- {zizmor-0.8.0 → zizmor-1.2.1}/src/render.rs +17 -12
- {zizmor-0.8.0 → zizmor-1.2.1}/src/sarif.rs +90 -18
- zizmor-1.2.1/src/state.rs +52 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/src/utils.rs +57 -2
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/acceptance.rs +20 -2
- zizmor-1.2.1/tests/snapshot.rs +475 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/snapshots/snapshot__artipacked-2.snap +2 -2
- zizmor-0.8.0/tests/snapshots/snapshot__artipacked.snap → zizmor-1.2.1/tests/snapshots/snapshot__artipacked-3.snap +7 -7
- zizmor-1.2.1/tests/snapshots/snapshot__artipacked-4.snap +18 -0
- zizmor-1.2.1/tests/snapshots/snapshot__artipacked.snap +14 -0
- zizmor-1.2.1/tests/snapshots/snapshot__bot_conditions.snap +46 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-10.snap +19 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-11.snap +60 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-12.snap +22 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-13.snap +22 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-14.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-2.snap +19 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-3.snap +21 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-4.snap +21 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-5.snap +22 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-6.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-7.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-8.snap +22 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning-9.snap +22 -0
- zizmor-1.2.1/tests/snapshots/snapshot__cache_poisoning.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__excessive_permissions-2.snap +14 -0
- zizmor-1.2.1/tests/snapshots/snapshot__excessive_permissions-3.snap +33 -0
- zizmor-1.2.1/tests/snapshots/snapshot__excessive_permissions-4.snap +14 -0
- zizmor-1.2.1/tests/snapshots/snapshot__excessive_permissions-5.snap +14 -0
- zizmor-1.2.1/tests/snapshots/snapshot__excessive_permissions-6.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__excessive_permissions-7.snap +36 -0
- zizmor-1.2.1/tests/snapshots/snapshot__excessive_permissions-8.snap +30 -0
- zizmor-1.2.1/tests/snapshots/snapshot__excessive_permissions-9.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__excessive_permissions.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__github_env-2.snap +16 -0
- zizmor-1.2.1/tests/snapshots/snapshot__github_env-3.snap +16 -0
- zizmor-1.2.1/tests/snapshots/snapshot__github_env.snap +33 -0
- zizmor-1.2.1/tests/snapshots/snapshot__insecure_commands-2.snap +15 -0
- zizmor-1.2.1/tests/snapshots/snapshot__insecure_commands-3.snap +32 -0
- zizmor-1.2.1/tests/snapshots/snapshot__insecure_commands.snap +23 -0
- zizmor-1.2.1/tests/snapshots/snapshot__secrets_inherit.snap +17 -0
- zizmor-1.2.1/tests/snapshots/snapshot__self_hosted-3.snap +14 -0
- zizmor-1.2.1/tests/snapshots/snapshot__self_hosted-4.snap +15 -0
- zizmor-1.2.1/tests/snapshots/snapshot__self_hosted-5.snap +19 -0
- zizmor-1.2.1/tests/snapshots/snapshot__self_hosted-6.snap +21 -0
- zizmor-1.2.1/tests/snapshots/snapshot__self_hosted-7.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__self_hosted-8.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__self_hosted.snap +14 -0
- zizmor-1.2.1/tests/snapshots/snapshot__template_injection-2.snap +17 -0
- zizmor-1.2.1/tests/snapshots/snapshot__template_injection-3.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__template_injection-4.snap +19 -0
- zizmor-1.2.1/tests/snapshots/snapshot__template_injection-5.snap +39 -0
- zizmor-1.2.1/tests/snapshots/snapshot__template_injection-6.snap +18 -0
- zizmor-1.2.1/tests/snapshots/snapshot__template_injection-7.snap +6 -0
- zizmor-1.2.1/tests/snapshots/snapshot__template_injection-8.snap +62 -0
- zizmor-1.2.1/tests/snapshots/snapshot__template_injection.snap +6 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/snapshots/snapshot__unpinned_uses-2.snap +12 -12
- zizmor-1.2.1/tests/snapshots/snapshot__unpinned_uses-3.snap +22 -0
- zizmor-1.2.1/tests/snapshots/snapshot__unpinned_uses-4.snap +6 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/snapshots/snapshot__unpinned_uses.snap +15 -15
- zizmor-1.2.1/tests/test-data/artipacked/issue-447-repro.yml +23 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/test-data/artipacked.yml +2 -0
- zizmor-1.2.1/tests/test-data/bot-conditions.yml +24 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/caching-disabled-by-default.yml +21 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/caching-enabled-by-default.yml +20 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/caching-not-configurable.yml +21 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/caching-opt-in-boolean-toggle.yml +23 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/caching-opt-in-boolish-toggle.yml +18 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/caching-opt-in-expression.yml +23 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/caching-opt-in-multi-value-toggle.yml +22 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/caching-opt-out.yml +22 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/issue-343-repro.yml +43 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/issue-378-repro.yml +25 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/no-cache-aware-steps.yml +16 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/publisher-step.yml +34 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/workflow-release-branch-trigger.yml +21 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning/workflow-tag-trigger.yml +22 -0
- zizmor-1.2.1/tests/test-data/cache-poisoning.yml +17 -0
- zizmor-1.2.1/tests/test-data/excessive-permissions/issue-336-repro.yml +12 -0
- zizmor-1.2.1/tests/test-data/excessive-permissions/jobs-broaden-permissions.yml +20 -0
- zizmor-1.2.1/tests/test-data/excessive-permissions/workflow-default-perms-all-jobs-explicit.yml +24 -0
- zizmor-1.2.1/tests/test-data/excessive-permissions/workflow-default-perms.yml +13 -0
- zizmor-1.2.1/tests/test-data/excessive-permissions/workflow-empty-perms.yml +20 -0
- zizmor-1.2.1/tests/test-data/excessive-permissions/workflow-read-all.yml +18 -0
- zizmor-1.2.1/tests/test-data/excessive-permissions/workflow-write-all.yml +18 -0
- zizmor-1.2.1/tests/test-data/excessive-permissions/workflow-write-explicit.yml +25 -0
- zizmor-1.2.1/tests/test-data/github-env/action.yml +28 -0
- zizmor-1.2.1/tests/test-data/github-env/github-path.yml +16 -0
- zizmor-1.2.1/tests/test-data/github-env/issue-397-repro.yml +18 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/test-data/github_env.yml +2 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/test-data/hardcoded-credentials.yml +2 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/test-data/inlined-ignores.yml +2 -0
- zizmor-1.2.1/tests/test-data/insecure-commands/action.yml +32 -0
- zizmor-1.2.1/tests/test-data/insecure-commands.yml +24 -0
- zizmor-1.2.1/tests/test-data/secrets-inherit.yml +24 -0
- zizmor-1.2.1/tests/test-data/self-hosted/issue-283-repro.yml +15 -0
- zizmor-1.2.1/tests/test-data/self-hosted/self-hosted-matrix-dimension.yml +14 -0
- zizmor-1.2.1/tests/test-data/self-hosted/self-hosted-matrix-exclusion.yml +18 -0
- zizmor-1.2.1/tests/test-data/self-hosted/self-hosted-matrix-inclusion.yml +16 -0
- zizmor-1.2.1/tests/test-data/self-hosted/self-hosted-runner-group.yml +12 -0
- zizmor-1.2.1/tests/test-data/self-hosted/self-hosted-runner-label.yml +11 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/test-data/self-hosted.yml +2 -0
- zizmor-1.2.1/tests/test-data/template-injection/issue-22-repro.yml +66 -0
- zizmor-1.2.1/tests/test-data/template-injection/issue-339-repro.yml +30 -0
- zizmor-1.2.1/tests/test-data/template-injection/issue-418-repro.yml +19 -0
- zizmor-1.2.1/tests/test-data/template-injection/pr-317-repro.yml +28 -0
- zizmor-1.2.1/tests/test-data/template-injection/pr-425-backstop/action.yml +31 -0
- zizmor-1.2.1/tests/test-data/template-injection/static-env.yml +55 -0
- zizmor-1.2.1/tests/test-data/template-injection/template-injection-dynamic-matrix.yml +21 -0
- zizmor-1.2.1/tests/test-data/template-injection/template-injection-static-matrix.yml +20 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/test-data/template-injection.yml +2 -0
- zizmor-1.2.1/tests/test-data/unpinned-uses/action.yml +11 -0
- zizmor-1.2.1/tests/test-data/unpinned-uses/issue-433-repro.yml +19 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/test-data/unpinned-uses.yml +2 -0
- zizmor-1.2.1/uv.lock +869 -0
- zizmor-0.8.0/.github/FUNDING.yml +0 -2
- zizmor-0.8.0/.github/release.yml +0 -29
- zizmor-0.8.0/.github/workflows/ci.yml +0 -36
- zizmor-0.8.0/.pre-commit-hooks.yaml +0 -6
- zizmor-0.8.0/Makefile +0 -22
- zizmor-0.8.0/docs/installation.md +0 -66
- zizmor-0.8.0/docs/quickstart.md +0 -73
- zizmor-0.8.0/pyproject.toml +0 -6
- zizmor-0.8.0/site-requirements.txt +0 -2
- zizmor-0.8.0/src/audit/artipacked.rs +0 -146
- zizmor-0.8.0/src/audit/excessive_permissions.rs +0 -162
- zizmor-0.8.0/src/audit/github_env.rs +0 -206
- zizmor-0.8.0/src/audit/insecure_commands.rs +0 -94
- zizmor-0.8.0/src/audit/mod.rs +0 -136
- zizmor-0.8.0/src/audit/unpinned_uses.rs +0 -55
- zizmor-0.8.0/src/github_api.rs +0 -319
- zizmor-0.8.0/src/main.rs +0 -304
- zizmor-0.8.0/src/models.rs +0 -760
- zizmor-0.8.0/src/state.rs +0 -63
- zizmor-0.8.0/tests/snapshot.rs +0 -170
- zizmor-0.8.0/tests/snapshots/snapshot__self_hosted.snap +0 -14
- zizmor-0.8.0/tests/test-data/insecure-commands.yml +0 -11
- {zizmor-0.8.0 → zizmor-1.2.1}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/.github/dependabot.yml +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/.gitignore +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/CONTRIBUTING.md +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/LICENSE +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/docs/assets/favicon48x48.png +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/docs/assets/rainbow.svg +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/docs/assets/zizmor-demo.gif +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/docs/magiclink.css +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/common.rs +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/snapshots/snapshot__cant_retrieve.snap +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/snapshots/snapshot__conflicting_online_options-2.snap +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/snapshots/snapshot__conflicting_online_options-3.snap +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/snapshots/snapshot__conflicting_online_options.snap +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/snapshots/snapshot__self_hosted-2.snap +0 -0
- {zizmor-0.8.0 → zizmor-1.2.1}/tests/test-data/excessive-permissions.yml +0 -0
- {zizmor-0.8.0 → zizmor-1.2.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,
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches:
|
|
6
|
+
- main
|
|
7
|
+
pull_request:
|
|
8
|
+
|
|
9
|
+
permissions: {}
|
|
10
|
+
|
|
11
|
+
jobs:
|
|
12
|
+
lint:
|
|
13
|
+
runs-on: ubuntu-latest
|
|
14
|
+
steps:
|
|
15
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
16
|
+
with:
|
|
17
|
+
persist-credentials: false
|
|
18
|
+
|
|
19
|
+
- name: Format
|
|
20
|
+
run: cargo fmt && git diff --exit-code
|
|
21
|
+
|
|
22
|
+
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2
|
|
23
|
+
|
|
24
|
+
- name: Lint
|
|
25
|
+
run: cargo clippy -- -D warnings
|
|
26
|
+
|
|
27
|
+
test:
|
|
28
|
+
runs-on: ubuntu-latest
|
|
29
|
+
steps:
|
|
30
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
31
|
+
with:
|
|
32
|
+
persist-credentials: false
|
|
33
|
+
|
|
34
|
+
- uses: Swatinem/rust-cache@f0deed1e0edfc6a9be95417288c0e1099b1eeec3 # v2
|
|
35
|
+
|
|
36
|
+
- uses: astral-sh/setup-uv@b5f58b2abc5763ade55e4e9d0fe52cd1ff7979ca # v5.2.1
|
|
37
|
+
|
|
38
|
+
- name: Test
|
|
39
|
+
run: cargo test
|
|
40
|
+
|
|
41
|
+
- name: Test snippets
|
|
42
|
+
run: |
|
|
43
|
+
make snippets
|
|
44
|
+
git diff --exit-code
|
|
45
|
+
|
|
46
|
+
test-site:
|
|
47
|
+
runs-on: ubuntu-latest
|
|
48
|
+
steps:
|
|
49
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
50
|
+
with:
|
|
51
|
+
persist-credentials: false
|
|
52
|
+
|
|
53
|
+
- uses: astral-sh/setup-uv@b5f58b2abc5763ade55e4e9d0fe52cd1ff7979ca # v5.2.1
|
|
54
|
+
|
|
55
|
+
- name: Test site
|
|
56
|
+
run: make site
|
|
57
|
+
|
|
58
|
+
all-tests-pass:
|
|
59
|
+
if: always()
|
|
60
|
+
needs: [lint, test, test-site]
|
|
61
|
+
runs-on: ubuntu-latest
|
|
62
|
+
|
|
63
|
+
steps:
|
|
64
|
+
- name: check test jobs
|
|
65
|
+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
|
|
66
|
+
with:
|
|
67
|
+
jobs: ${{ toJSON(needs) }}
|
|
@@ -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:
|
|
@@ -18,32 +17,37 @@ jobs:
|
|
|
18
17
|
strategy:
|
|
19
18
|
matrix:
|
|
20
19
|
platform:
|
|
21
|
-
- runner: ubuntu-
|
|
20
|
+
- runner: ubuntu-24.04
|
|
22
21
|
target: x86_64
|
|
23
|
-
|
|
22
|
+
manylinux: auto
|
|
23
|
+
- runner: ubuntu-24.04
|
|
24
24
|
target: x86
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
manylinux: auto
|
|
26
|
+
- runner: ubuntu-24.04-arm
|
|
27
|
+
target: aarch64
|
|
28
|
+
manylinux: "2_24"
|
|
29
|
+
- runner: ubuntu-24.04
|
|
29
30
|
target: armv7
|
|
30
|
-
|
|
31
|
+
manylinux: auto
|
|
32
|
+
- runner: ubuntu-24.04
|
|
31
33
|
target: s390x
|
|
32
|
-
|
|
34
|
+
manylinux: auto
|
|
35
|
+
- runner: ubuntu-24.04
|
|
33
36
|
target: ppc64le
|
|
37
|
+
manylinux: auto
|
|
34
38
|
steps:
|
|
35
|
-
- uses: actions/checkout@v4
|
|
39
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
36
40
|
with:
|
|
37
41
|
persist-credentials: false
|
|
38
42
|
- name: Build wheels
|
|
39
|
-
uses: PyO3/maturin-action@v1
|
|
43
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
40
44
|
with:
|
|
41
45
|
target: ${{ matrix.platform.target }}
|
|
42
46
|
args: --release --out dist
|
|
43
|
-
sccache: '
|
|
44
|
-
manylinux:
|
|
47
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
48
|
+
manylinux: ${{ matrix.platform.manylinux }}
|
|
45
49
|
- name: Upload wheels
|
|
46
|
-
uses: actions/upload-artifact@v4
|
|
50
|
+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
|
47
51
|
with:
|
|
48
52
|
name: wheels-linux-${{ matrix.platform.target }}
|
|
49
53
|
path: dist
|
|
@@ -53,27 +57,27 @@ jobs:
|
|
|
53
57
|
strategy:
|
|
54
58
|
matrix:
|
|
55
59
|
platform:
|
|
56
|
-
- runner: ubuntu-
|
|
60
|
+
- runner: ubuntu-24.04
|
|
57
61
|
target: x86_64
|
|
58
|
-
- runner: ubuntu-
|
|
62
|
+
- runner: ubuntu-24.04
|
|
59
63
|
target: x86
|
|
60
|
-
- runner: ubuntu-
|
|
64
|
+
- runner: ubuntu-24.04
|
|
61
65
|
target: aarch64
|
|
62
|
-
- runner: ubuntu-
|
|
66
|
+
- runner: ubuntu-24.04
|
|
63
67
|
target: armv7
|
|
64
68
|
steps:
|
|
65
|
-
- uses: actions/checkout@v4
|
|
69
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
66
70
|
with:
|
|
67
71
|
persist-credentials: false
|
|
68
72
|
- name: Build wheels
|
|
69
|
-
uses: PyO3/maturin-action@v1
|
|
73
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
70
74
|
with:
|
|
71
75
|
target: ${{ matrix.platform.target }}
|
|
72
76
|
args: --release --out dist
|
|
73
|
-
sccache: '
|
|
77
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
74
78
|
manylinux: musllinux_1_2
|
|
75
79
|
- name: Upload wheels
|
|
76
|
-
uses: actions/upload-artifact@v4
|
|
80
|
+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
|
77
81
|
with:
|
|
78
82
|
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
79
83
|
path: dist
|
|
@@ -88,17 +92,17 @@ jobs:
|
|
|
88
92
|
- runner: windows-latest
|
|
89
93
|
target: x86
|
|
90
94
|
steps:
|
|
91
|
-
- uses: actions/checkout@v4
|
|
95
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
92
96
|
with:
|
|
93
97
|
persist-credentials: false
|
|
94
98
|
- name: Build wheels
|
|
95
|
-
uses: PyO3/maturin-action@v1
|
|
99
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
96
100
|
with:
|
|
97
101
|
target: ${{ matrix.platform.target }}
|
|
98
102
|
args: --release --out dist
|
|
99
|
-
sccache: '
|
|
103
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
100
104
|
- name: Upload wheels
|
|
101
|
-
uses: actions/upload-artifact@v4
|
|
105
|
+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
|
102
106
|
with:
|
|
103
107
|
name: wheels-windows-${{ matrix.platform.target }}
|
|
104
108
|
path: dist
|
|
@@ -113,17 +117,17 @@ jobs:
|
|
|
113
117
|
- runner: macos-14
|
|
114
118
|
target: aarch64
|
|
115
119
|
steps:
|
|
116
|
-
- uses: actions/checkout@v4
|
|
120
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
117
121
|
with:
|
|
118
122
|
persist-credentials: false
|
|
119
123
|
- name: Build wheels
|
|
120
|
-
uses: PyO3/maturin-action@v1
|
|
124
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
121
125
|
with:
|
|
122
126
|
target: ${{ matrix.platform.target }}
|
|
123
127
|
args: --release --out dist
|
|
124
|
-
sccache: '
|
|
128
|
+
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
125
129
|
- name: Upload wheels
|
|
126
|
-
uses: actions/upload-artifact@v4
|
|
130
|
+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
|
127
131
|
with:
|
|
128
132
|
name: wheels-macos-${{ matrix.platform.target }}
|
|
129
133
|
path: dist
|
|
@@ -131,16 +135,16 @@ jobs:
|
|
|
131
135
|
sdist:
|
|
132
136
|
runs-on: ubuntu-latest
|
|
133
137
|
steps:
|
|
134
|
-
- uses: actions/checkout@v4
|
|
138
|
+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
135
139
|
with:
|
|
136
140
|
persist-credentials: false
|
|
137
141
|
- name: Build sdist
|
|
138
|
-
uses: PyO3/maturin-action@v1
|
|
142
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
139
143
|
with:
|
|
140
144
|
command: sdist
|
|
141
145
|
args: --out dist
|
|
142
146
|
- name: Upload sdist
|
|
143
|
-
uses: actions/upload-artifact@v4
|
|
147
|
+
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4
|
|
144
148
|
with:
|
|
145
149
|
name: wheels-sdist
|
|
146
150
|
path: dist
|
|
@@ -161,14 +165,14 @@ jobs:
|
|
|
161
165
|
# Used to generate artifact attestation
|
|
162
166
|
attestations: write
|
|
163
167
|
steps:
|
|
164
|
-
- uses: actions/download-artifact@v4
|
|
168
|
+
- uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4
|
|
165
169
|
- name: Generate artifact attestation
|
|
166
|
-
uses: actions/attest-build-provenance@
|
|
170
|
+
uses: actions/attest-build-provenance@7668571508540a607bdfd90a87a560489fe372eb # v2
|
|
167
171
|
with:
|
|
168
172
|
subject-path: 'wheels-*/*'
|
|
169
173
|
- name: Publish to PyPI
|
|
170
174
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
171
|
-
uses: PyO3/maturin-action@v1
|
|
175
|
+
uses: PyO3/maturin-action@ea5bac0f1ccd0ab11c805e2b804bfcb65dac2eab # v1
|
|
172
176
|
with:
|
|
173
177
|
command: upload
|
|
174
178
|
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@b5f58b2abc5763ade55e4e9d0fe52cd1ff7979ca # v5.2.1
|
|
35
34
|
|
|
36
35
|
- name: build site
|
|
37
36
|
run: make site
|
|
@@ -18,16 +18,14 @@ jobs:
|
|
|
18
18
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
19
19
|
with:
|
|
20
20
|
persist-credentials: false
|
|
21
|
-
- name:
|
|
22
|
-
uses:
|
|
23
|
-
- name: Get zizmor
|
|
24
|
-
run: cargo install zizmor
|
|
21
|
+
- name: Install the latest version of uv
|
|
22
|
+
uses: astral-sh/setup-uv@b5f58b2abc5763ade55e4e9d0fe52cd1ff7979ca # v5.2.1
|
|
25
23
|
- name: Run zizmor 🌈
|
|
26
|
-
run: zizmor --format sarif . > results.sarif
|
|
24
|
+
run: uvx zizmor --format sarif . > results.sarif
|
|
27
25
|
env:
|
|
28
26
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
29
27
|
- name: Upload SARIF file
|
|
30
|
-
uses: github/codeql-action/upload-sarif@
|
|
28
|
+
uses: github/codeql-action/upload-sarif@b6a472f63d85b9c78a3ac5e89422239fc15e9b3c # v3.28.1
|
|
31
29
|
with:
|
|
32
30
|
sarif_file: results.sarif
|
|
33
31
|
category: zizmor
|