zizmor 1.5.1__tar.gz → 1.6.0__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-1.5.1 → zizmor-1.6.0}/.github/workflows/ci.yml +4 -4
- {zizmor-1.5.1 → zizmor-1.6.0}/.github/workflows/docker.yml +4 -4
- {zizmor-1.5.1 → zizmor-1.6.0}/.github/workflows/pypi.yml +27 -33
- {zizmor-1.5.1 → zizmor-1.6.0}/.github/workflows/site.yml +1 -1
- zizmor-1.6.0/.github/workflows/test-output.yml +71 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/.github/workflows/zizmor.yml +2 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/Cargo.lock +188 -91
- {zizmor-1.5.1 → zizmor-1.6.0}/Cargo.toml +16 -18
- zizmor-1.6.0/Dockerfile +18 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/PKG-INFO +1 -1
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/audits.md +582 -350
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/configuration.md +9 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/development.md +21 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/installation.md +7 -1
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/release-notes.md +86 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/snippets/help.txt +1 -1
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/snippets/trophies.md +106 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/snippets/trophies.txt +15 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/usage.md +300 -74
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/artipacked.rs +2 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/bot_conditions.rs +2 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/cache_poisoning.rs +80 -38
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/dangerous_triggers.rs +2 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/excessive_permissions.rs +4 -6
- zizmor-1.6.0/src/audit/forbidden_uses.rs +118 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/github_env.rs +14 -9
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/hardcoded_container_credentials.rs +4 -4
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/impostor_commit.rs +8 -4
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/insecure_commands.rs +3 -3
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/known_vulnerable_actions.rs +8 -4
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/mod.rs +26 -10
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/overprovisioned_secrets.rs +5 -6
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/ref_confusion.rs +8 -4
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/secrets_inherit.rs +2 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/self_hosted_runner.rs +2 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/template_injection.rs +18 -10
- zizmor-1.6.0/src/audit/unpinned_uses.rs +305 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/unredacted_secrets.rs +5 -6
- {zizmor-1.5.1 → zizmor-1.6.0}/src/audit/use_trusted_publishing.rs +4 -7
- {zizmor-1.5.1 → zizmor-1.6.0}/src/config.rs +22 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/src/expr/mod.rs +99 -43
- {zizmor-1.5.1 → zizmor-1.6.0}/src/finding/mod.rs +83 -15
- {zizmor-1.5.1 → zizmor-1.6.0}/src/main.rs +61 -28
- zizmor-1.6.0/src/models/coordinate.rs +436 -0
- zizmor-1.6.0/src/models/uses.rs +429 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/src/models.rs +3 -3
- zizmor-1.6.0/src/output/github.rs +64 -0
- zizmor-1.6.0/src/output/mod.rs +3 -0
- zizmor-1.5.1/src/render.rs → zizmor-1.6.0/src/output/plain.rs +6 -1
- {zizmor-1.5.1/src → zizmor-1.6.0/src/output}/sarif.rs +14 -9
- {zizmor-1.5.1 → zizmor-1.6.0}/src/registry.rs +49 -1
- {zizmor-1.5.1 → zizmor-1.6.0}/src/state.rs +6 -3
- {zizmor-1.5.1 → zizmor-1.6.0}/src/utils.rs +127 -14
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/acceptance.rs +2 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/common.rs +13 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/e2e.rs +41 -0
- zizmor-1.6.0/tests/integration/main.rs +11 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshot.rs +133 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__e2e__gha_hazmat.snap +118 -7
- zizmor-1.6.0/tests/integration/snapshots/integration__e2e__invalid_config_file.snap +9 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__e2e__issue_569.snap +178 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__e2e__issue_612_repro.snap +5 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__e2e__menagerie-2.snap +1 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__e2e__menagerie.snap +1 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-10.snap +1 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-11.snap +2 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-12.snap +1 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-13.snap +1 -2
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__cache_poisoning-14.snap +5 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__cache_poisoning-15.snap +19 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-2.snap +1 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-4.snap +1 -2
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__cache_poisoning-6.snap +5 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-8.snap +1 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-9.snap +1 -2
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cant_retrieve.snap +1 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__forbidden_uses-2.snap +30 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__forbidden_uses-3.snap +14 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__forbidden_uses-4.snap +22 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__forbidden_uses.snap +6 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__github_output.snap +8 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__invalid_inputs.snap +2 -1
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__ref_confusion-2.snap +14 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__ref_confusion.snap +22 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__template_injection-3.snap +6 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__template_injection-6.snap +2 -3
- zizmor-1.5.1/tests/integration/snapshots/integration__snapshot__cache_poisoning-14.snap → zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__template_injection-7.snap +1 -1
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__template_injection-8.snap +4 -4
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__template_injection-9.snap +5 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned-uses-composite-config-2.snap +30 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned-uses-composite-config.snap +30 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned-uses-default-config.snap +22 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned-uses-empty-config.snap +54 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned-uses-hash-pin-everything-config.snap +54 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned-uses-ref-pin-everything-config.snap +14 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned_uses-10.snap +12 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned_uses-11.snap +12 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__unpinned_uses-2.snap +6 -6
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned_uses-3.snap +22 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned_uses-5.snap +33 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned_uses-6.snap +12 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned_uses-7.snap +12 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned_uses-8.snap +12 -0
- zizmor-1.6.0/tests/integration/snapshots/integration__snapshot__unpinned_uses-9.snap +12 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__unpinned_uses.snap +6 -14
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/issue-378-repro.yml +1 -0
- zizmor-1.6.0/tests/integration/test-data/cache-poisoning/issue-642-repro.yml +39 -0
- zizmor-1.6.0/tests/integration/test-data/forbidden-uses/configs/allow-all.yml +11 -0
- zizmor-1.6.0/tests/integration/test-data/forbidden-uses/configs/allow-some.yml +12 -0
- zizmor-1.6.0/tests/integration/test-data/forbidden-uses/configs/deny-all.yml +11 -0
- zizmor-1.6.0/tests/integration/test-data/forbidden-uses/configs/deny-some.yml +12 -0
- zizmor-1.6.0/tests/integration/test-data/forbidden-uses/forbidden-uses-menagerie.yml +16 -0
- zizmor-1.6.0/tests/integration/test-data/issue-612-repro/action.yml +31 -0
- zizmor-1.6.0/tests/integration/test-data/several-vulnerabilities.yml +16 -0
- zizmor-1.6.0/tests/integration/test-data/template-injection/dataflow.yml +29 -0
- zizmor-1.6.0/tests/integration/test-data/template-injection/false-positive-menagerie.yml +25 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/composite-2.yml +13 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/composite.yml +10 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/empty.yml +7 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/hash-pin-everything.yml +5 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/invalid-policy-syntax-1.yml +6 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/invalid-policy-syntax-2.yml +6 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/invalid-policy-syntax-3.yml +6 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/invalid-policy-syntax-4.yml +6 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/invalid-policy-syntax-5.yml +6 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/invalid-wrong-policy-object.yml +5 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/configs/ref-pin-everything.yml +5 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/issue-659-repro.yml +19 -0
- zizmor-1.6.0/tests/integration/test-data/unpinned-uses/menagerie-of-uses.yml +29 -0
- zizmor-1.5.1/Dockerfile +0 -30
- zizmor-1.5.1/src/audit/unpinned_uses.rs +0 -100
- zizmor-1.5.1/src/models/coordinate.rs +0 -282
- zizmor-1.5.1/src/models/uses.rs +0 -147
- zizmor-1.5.1/tests/integration/main.rs +0 -4
- zizmor-1.5.1/tests/integration/snapshots/integration__snapshot__cache_poisoning-6.snap +0 -6
- zizmor-1.5.1/tests/integration/snapshots/integration__snapshot__ref_confusion-2.snap +0 -6
- zizmor-1.5.1/tests/integration/snapshots/integration__snapshot__ref_confusion.snap +0 -14
- zizmor-1.5.1/tests/integration/snapshots/integration__snapshot__template_injection-3.snap +0 -6
- zizmor-1.5.1/tests/integration/snapshots/integration__snapshot__template_injection-7.snap +0 -6
- zizmor-1.5.1/tests/integration/snapshots/integration__snapshot__unpinned_uses-3.snap +0 -22
- {zizmor-1.5.1 → zizmor-1.6.0}/.github/ISSUE_TEMPLATE/bug-report.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/.github/ISSUE_TEMPLATE/config.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/.github/ISSUE_TEMPLATE/feature-request.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/.github/dependabot.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/.github/workflows/release.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/.gitignore +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/CONTRIBUTING.md +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/LICENSE +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/Makefile +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/README.md +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/assets/favicon48x48.png +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/assets/rainbow.svg +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/assets/zizmor-demo.gif +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/index.md +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/magiclink.css +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/quickstart.md +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/snippets/render-sponsors.py +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/snippets/render-trophies.py +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/snippets/sponsors.html +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/snippets/sponsors.json +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/docs/trophy-case.md +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/mkdocs.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/pyproject.toml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/src/expr/expr.pest +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/src/github_api.rs +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__artipacked-2.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__artipacked-3.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__artipacked-4.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__artipacked.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__bot_conditions.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-3.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-5.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning-7.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__cache_poisoning.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-10.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-11.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-12.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-2.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-3.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-4.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-5.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-6.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-7.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-8.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions-9.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__excessive_permissions.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__github_env-2.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__github_env-3.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__github_env.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__insecure_commands-2.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__insecure_commands-3.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__insecure_commands.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__overprovisioned_secrets.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__secrets_inherit.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__self_hosted-2.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__self_hosted-3.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__self_hosted-4.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__self_hosted-5.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__self_hosted-6.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__self_hosted-7.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__self_hosted-8.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__self_hosted.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__template_injection-2.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__template_injection-4.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__template_injection-5.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__template_injection.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__unpinned_uses-4.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/snapshots/integration__snapshot__unredacted_secrets.snap +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/artipacked/issue-447-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/artipacked.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/bot-conditions.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/caching-disabled-by-default.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/caching-enabled-by-default.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/caching-not-configurable.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/caching-opt-in-boolean-toggle.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/caching-opt-in-boolish-toggle.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/caching-opt-in-expression.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/caching-opt-in-multi-value-toggle.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/caching-opt-out.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/issue-343-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/no-cache-aware-steps.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/publisher-step.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/workflow-release-branch-trigger.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning/workflow-tag-trigger.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/cache-poisoning.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/e2e-menagerie/.github/dummy-action-2/action.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/e2e-menagerie/.github/workflows/another-dummy.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/e2e-menagerie/.github/workflows/dummy.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/e2e-menagerie/.github/workflows/ignored.yaml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/e2e-menagerie/.gitignore +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/e2e-menagerie/README.md +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/e2e-menagerie/dummy-action-1/action.yaml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/issue-336-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/issue-472-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/jobs-broaden-permissions.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/reusable-workflow-call.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/reusable-workflow-other-triggers.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/workflow-default-perms-all-jobs-explicit.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/workflow-default-perms.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/workflow-empty-perms.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/workflow-read-all.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/workflow-write-all.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions/workflow-write-explicit.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/excessive-permissions.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/github-env/action.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/github-env/github-path.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/github-env/issue-397-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/github_env.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/hardcoded-credentials.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/inlined-ignores.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/insecure-commands/action.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/insecure-commands.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/invalid/invalid-workflow.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/overprovisioned-secrets.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/ref-confusion/issue-518-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/ref-confusion.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/secrets-inherit.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/self-hosted/issue-283-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/self-hosted/self-hosted-matrix-dimension.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/self-hosted/self-hosted-matrix-exclusion.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/self-hosted/self-hosted-matrix-inclusion.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/self-hosted/self-hosted-runner-group.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/self-hosted/self-hosted-runner-label.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/self-hosted.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/template-injection/issue-22-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/template-injection/issue-339-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/template-injection/issue-418-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/template-injection/pr-317-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/template-injection/pr-425-backstop/action.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/template-injection/static-env.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/template-injection/template-injection-dynamic-matrix.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/template-injection/template-injection-static-matrix.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/template-injection.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/unpinned-uses/action.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/unpinned-uses/issue-433-repro.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/unpinned-uses.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/unredacted-secrets.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/tests/integration/test-data/use-trusted-publishing.yml +0 -0
- {zizmor-1.5.1 → zizmor-1.6.0}/uv.lock +0 -0
|
@@ -19,7 +19,7 @@ jobs:
|
|
|
19
19
|
- name: Format
|
|
20
20
|
run: cargo fmt && git diff --exit-code
|
|
21
21
|
|
|
22
|
-
- uses: Swatinem/rust-cache@
|
|
22
|
+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2
|
|
23
23
|
|
|
24
24
|
- name: Lint
|
|
25
25
|
run: cargo clippy -- -D warnings -D clippy::dbg_macro
|
|
@@ -31,9 +31,9 @@ jobs:
|
|
|
31
31
|
with:
|
|
32
32
|
persist-credentials: false
|
|
33
33
|
|
|
34
|
-
- uses: Swatinem/rust-cache@
|
|
34
|
+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2
|
|
35
35
|
|
|
36
|
-
- uses: astral-sh/setup-uv@
|
|
36
|
+
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
|
|
37
37
|
|
|
38
38
|
- name: Test dependencies
|
|
39
39
|
run: |
|
|
@@ -57,7 +57,7 @@ jobs:
|
|
|
57
57
|
with:
|
|
58
58
|
persist-credentials: false
|
|
59
59
|
|
|
60
|
-
- uses: astral-sh/setup-uv@
|
|
60
|
+
- uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
|
|
61
61
|
|
|
62
62
|
- name: Test site
|
|
63
63
|
run: make site
|
|
@@ -59,7 +59,7 @@ jobs:
|
|
|
59
59
|
images: "${{ env.ZIZMOR_IMAGE }}"
|
|
60
60
|
|
|
61
61
|
- name: Login to GHCR
|
|
62
|
-
uses: docker/login-action@
|
|
62
|
+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v6
|
|
63
63
|
if: github.repository_owner == 'woodruffw'
|
|
64
64
|
with:
|
|
65
65
|
registry: ghcr.io
|
|
@@ -85,7 +85,7 @@ jobs:
|
|
|
85
85
|
DIGEST: ${{ steps.build.outputs.digest }}
|
|
86
86
|
|
|
87
87
|
- name: Upload digest
|
|
88
|
-
uses: actions/upload-artifact@
|
|
88
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
|
89
89
|
with:
|
|
90
90
|
name: digests-${{ matrix.image.platform-pair }}
|
|
91
91
|
path: ${{ runner.temp }}/digests/*
|
|
@@ -105,14 +105,14 @@ jobs:
|
|
|
105
105
|
|
|
106
106
|
steps:
|
|
107
107
|
- name: Download digests
|
|
108
|
-
uses: actions/download-artifact@
|
|
108
|
+
uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4
|
|
109
109
|
with:
|
|
110
110
|
path: ${{ runner.temp }}/digests
|
|
111
111
|
pattern: digests-*
|
|
112
112
|
merge-multiple: true
|
|
113
113
|
|
|
114
114
|
- name: Login to GHCR
|
|
115
|
-
uses: docker/login-action@
|
|
115
|
+
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v6
|
|
116
116
|
if: github.repository_owner == 'woodruffw'
|
|
117
117
|
with:
|
|
118
118
|
registry: ghcr.io
|
|
@@ -19,35 +19,34 @@ jobs:
|
|
|
19
19
|
platform:
|
|
20
20
|
- runner: ubuntu-24.04
|
|
21
21
|
target: x86_64
|
|
22
|
-
manylinux:
|
|
23
|
-
- runner: ubuntu-24.04
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
manylinux: "2_28"
|
|
23
|
+
# - runner: ubuntu-24.04
|
|
24
|
+
# target: x86
|
|
25
|
+
# manylinux: "auto"
|
|
26
26
|
- runner: ubuntu-24.04
|
|
27
27
|
target: aarch64
|
|
28
28
|
manylinux: "2_24"
|
|
29
29
|
- runner: ubuntu-24.04
|
|
30
30
|
target: armv7
|
|
31
|
-
manylinux:
|
|
32
|
-
- runner: ubuntu-24.04
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
- runner: ubuntu-24.04
|
|
36
|
-
|
|
37
|
-
|
|
31
|
+
manylinux: "2_28"
|
|
32
|
+
# - runner: ubuntu-24.04
|
|
33
|
+
# target: s390x
|
|
34
|
+
# manylinux: "2_28"
|
|
35
|
+
# - runner: ubuntu-24.04
|
|
36
|
+
# target: ppc64le
|
|
37
|
+
# manylinux: "2_28"
|
|
38
38
|
steps:
|
|
39
39
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
40
40
|
with:
|
|
41
41
|
persist-credentials: false
|
|
42
42
|
- name: Build wheels
|
|
43
|
-
uses: PyO3/maturin-action@
|
|
43
|
+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1
|
|
44
44
|
with:
|
|
45
45
|
target: ${{ matrix.platform.target }}
|
|
46
46
|
args: --release --out dist
|
|
47
|
-
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
48
47
|
manylinux: ${{ matrix.platform.manylinux }}
|
|
49
48
|
- name: Upload wheels
|
|
50
|
-
uses: actions/upload-artifact@
|
|
49
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
|
51
50
|
with:
|
|
52
51
|
name: wheels-linux-${{ matrix.platform.target }}
|
|
53
52
|
path: dist
|
|
@@ -59,8 +58,8 @@ jobs:
|
|
|
59
58
|
platform:
|
|
60
59
|
- runner: ubuntu-24.04
|
|
61
60
|
target: x86_64
|
|
62
|
-
- runner: ubuntu-24.04
|
|
63
|
-
|
|
61
|
+
# - runner: ubuntu-24.04
|
|
62
|
+
# target: x86
|
|
64
63
|
- runner: ubuntu-24.04
|
|
65
64
|
target: aarch64
|
|
66
65
|
- runner: ubuntu-24.04
|
|
@@ -70,14 +69,13 @@ jobs:
|
|
|
70
69
|
with:
|
|
71
70
|
persist-credentials: false
|
|
72
71
|
- name: Build wheels
|
|
73
|
-
uses: PyO3/maturin-action@
|
|
72
|
+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1
|
|
74
73
|
with:
|
|
75
74
|
target: ${{ matrix.platform.target }}
|
|
76
75
|
args: --release --out dist
|
|
77
|
-
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
78
76
|
manylinux: musllinux_1_2
|
|
79
77
|
- name: Upload wheels
|
|
80
|
-
uses: actions/upload-artifact@
|
|
78
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
|
81
79
|
with:
|
|
82
80
|
name: wheels-musllinux-${{ matrix.platform.target }}
|
|
83
81
|
path: dist
|
|
@@ -96,13 +94,12 @@ jobs:
|
|
|
96
94
|
with:
|
|
97
95
|
persist-credentials: false
|
|
98
96
|
- name: Build wheels
|
|
99
|
-
uses: PyO3/maturin-action@
|
|
97
|
+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1
|
|
100
98
|
with:
|
|
101
99
|
target: ${{ matrix.platform.target }}
|
|
102
100
|
args: --release --out dist
|
|
103
|
-
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
104
101
|
- name: Upload wheels
|
|
105
|
-
uses: actions/upload-artifact@
|
|
102
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
|
106
103
|
with:
|
|
107
104
|
name: wheels-windows-${{ matrix.platform.target }}
|
|
108
105
|
path: dist
|
|
@@ -112,24 +109,21 @@ jobs:
|
|
|
112
109
|
strategy:
|
|
113
110
|
matrix:
|
|
114
111
|
platform:
|
|
115
|
-
|
|
116
|
-
# See: https://github.com/actions/runner-images/issues/11637
|
|
117
|
-
- runner: macos-13
|
|
112
|
+
- runner: macos-15
|
|
118
113
|
target: x86_64
|
|
119
|
-
- runner: macos-
|
|
114
|
+
- runner: macos-15
|
|
120
115
|
target: aarch64
|
|
121
116
|
steps:
|
|
122
117
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
123
118
|
with:
|
|
124
119
|
persist-credentials: false
|
|
125
120
|
- name: Build wheels
|
|
126
|
-
uses: PyO3/maturin-action@
|
|
121
|
+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1
|
|
127
122
|
with:
|
|
128
123
|
target: ${{ matrix.platform.target }}
|
|
129
124
|
args: --release --out dist
|
|
130
|
-
sccache: ${{ !startsWith(github.ref, 'refs/tags/') }} # zizmor: ignore[cache-poisoning]
|
|
131
125
|
- name: Upload wheels
|
|
132
|
-
uses: actions/upload-artifact@
|
|
126
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
|
133
127
|
with:
|
|
134
128
|
name: wheels-macos-${{ matrix.platform.target }}
|
|
135
129
|
path: dist
|
|
@@ -141,12 +135,12 @@ jobs:
|
|
|
141
135
|
with:
|
|
142
136
|
persist-credentials: false
|
|
143
137
|
- name: Build sdist
|
|
144
|
-
uses: PyO3/maturin-action@
|
|
138
|
+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1
|
|
145
139
|
with:
|
|
146
140
|
command: sdist
|
|
147
141
|
args: --out dist
|
|
148
142
|
- name: Upload sdist
|
|
149
|
-
uses: actions/upload-artifact@
|
|
143
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
|
150
144
|
with:
|
|
151
145
|
name: wheels-sdist
|
|
152
146
|
path: dist
|
|
@@ -167,14 +161,14 @@ jobs:
|
|
|
167
161
|
# Used to generate artifact attestation
|
|
168
162
|
attestations: write
|
|
169
163
|
steps:
|
|
170
|
-
- uses: actions/download-artifact@
|
|
164
|
+
- uses: actions/download-artifact@95815c38cf2ff2164869cbab79da8d1f422bc89e # v4
|
|
171
165
|
- name: Generate artifact attestation
|
|
172
166
|
uses: actions/attest-build-provenance@c074443f1aee8d4aeeae555aebba3282517141b2 # v2
|
|
173
167
|
with:
|
|
174
168
|
subject-path: 'wheels-*/*'
|
|
175
169
|
- name: Publish to PyPI
|
|
176
170
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
|
177
|
-
uses: PyO3/maturin-action@
|
|
171
|
+
uses: PyO3/maturin-action@aef21716ff3dcae8a1c301d23ec3e4446972a6e3 # v1
|
|
178
172
|
with:
|
|
179
173
|
command: upload
|
|
180
174
|
args: --non-interactive --skip-existing wheels-*/*
|
|
@@ -30,7 +30,7 @@ jobs:
|
|
|
30
30
|
persist-credentials: false
|
|
31
31
|
|
|
32
32
|
- name: Install the latest version of uv
|
|
33
|
-
uses: astral-sh/setup-uv@
|
|
33
|
+
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
|
|
34
34
|
|
|
35
35
|
- name: build site
|
|
36
36
|
run: make site
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
name: Test output formats
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
pull_request:
|
|
5
|
+
types:
|
|
6
|
+
- opened
|
|
7
|
+
- synchronize
|
|
8
|
+
- reopened
|
|
9
|
+
- labeled
|
|
10
|
+
|
|
11
|
+
permissions: {}
|
|
12
|
+
|
|
13
|
+
jobs:
|
|
14
|
+
test-sarif-presentation:
|
|
15
|
+
runs-on: ubuntu-latest
|
|
16
|
+
if: contains(github.event.pull_request.labels.*.name, 'test-sarif-presentation')
|
|
17
|
+
permissions:
|
|
18
|
+
pull-requests: write # for 'Leave comment' step
|
|
19
|
+
steps:
|
|
20
|
+
- name: Checkout repository
|
|
21
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
22
|
+
with:
|
|
23
|
+
persist-credentials: false
|
|
24
|
+
|
|
25
|
+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2
|
|
26
|
+
|
|
27
|
+
- name: Run zizmor
|
|
28
|
+
run: |
|
|
29
|
+
cargo run -- --format sarif . > results.sarif
|
|
30
|
+
|
|
31
|
+
- name: Upload SARIF file
|
|
32
|
+
uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
|
|
33
|
+
with:
|
|
34
|
+
sarif_file: results.sarif
|
|
35
|
+
category: zizmor-test-sarif-presentation
|
|
36
|
+
|
|
37
|
+
- name: Leave comment
|
|
38
|
+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
|
|
39
|
+
with:
|
|
40
|
+
script: |
|
|
41
|
+
let url = `https://github.com/woodruffw/zizmor/security/code-scanning?query=pr%3A${context.issue.number}+is%3Aopen+sort%3Acreated-desc`
|
|
42
|
+
|
|
43
|
+
github.rest.issues.createComment({
|
|
44
|
+
issue_number: context.issue.number,
|
|
45
|
+
owner: context.repo.owner,
|
|
46
|
+
repo: context.repo.repo,
|
|
47
|
+
body: `:robot: Presentation results: <${url}>`
|
|
48
|
+
})
|
|
49
|
+
|
|
50
|
+
test-github-presentation:
|
|
51
|
+
runs-on: ubuntu-latest
|
|
52
|
+
if: contains(github.event.pull_request.labels.*.name, 'test-github-presentation')
|
|
53
|
+
permissions: {}
|
|
54
|
+
|
|
55
|
+
steps:
|
|
56
|
+
- name: Checkout repository
|
|
57
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
|
|
58
|
+
with:
|
|
59
|
+
persist-credentials: false
|
|
60
|
+
|
|
61
|
+
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2
|
|
62
|
+
|
|
63
|
+
- name: Run zizmor
|
|
64
|
+
run: |
|
|
65
|
+
# Normally we'd want a workflow to fail if the audit fails,
|
|
66
|
+
# but we're only testing presentation here.
|
|
67
|
+
cargo run \
|
|
68
|
+
-- \
|
|
69
|
+
--no-exit-codes \
|
|
70
|
+
--format github \
|
|
71
|
+
tests/integration/test-data/several-vulnerabilities.yml
|
|
@@ -21,13 +21,13 @@ jobs:
|
|
|
21
21
|
with:
|
|
22
22
|
persist-credentials: false
|
|
23
23
|
- name: Install the latest version of uv
|
|
24
|
-
uses: astral-sh/setup-uv@
|
|
24
|
+
uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1
|
|
25
25
|
- name: Run zizmor 🌈
|
|
26
26
|
run: uvx zizmor --format sarif . > results.sarif
|
|
27
27
|
env:
|
|
28
28
|
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
29
29
|
- name: Upload SARIF file
|
|
30
|
-
uses: github/codeql-action/upload-sarif@
|
|
30
|
+
uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47 # v3.28.15
|
|
31
31
|
with:
|
|
32
32
|
sarif_file: results.sarif
|
|
33
33
|
category: zizmor
|