mirror of
https://github.com/zizmorcore/zizmor.git
synced 2025-12-23 08:47:33 +00:00
test: update snapshot expressions (#716)
This commit is contained in:
parent
cf4918f6a7
commit
68e76111f7
75 changed files with 52 additions and 127 deletions
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/e2e.rs
|
||||
expression: "zizmor().offline(false).output(OutputMode::Both).args([\"--no-online-audits\"]).input(\"woodruffw/gha-hazmat@42064a9533f401a493c3599e56f144918f8eacfd\").run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
INFO collect_inputs: zizmor: collected 20 inputs from woodruffw/gha-hazmat
|
||||
INFO zizmor: skipping impostor-commit: offline audits only requested
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/e2e.rs
|
||||
expression: "zizmor().output(OutputMode::Stderr).config(\"/dev/null\").input(input_under_test(\"e2e-menagerie\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().expects_failure(true).config(if cfg!(windows) { \"NUL\" } else\n{ \"/dev/null\" }).input(input_under_test(\"e2e-menagerie\")).run()?"
|
||||
---
|
||||
fatal: no audit was performed
|
||||
error: failed to load config: missing field `rules`
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/e2e.rs
|
||||
expression: "zizmor().output(OutputMode::Both).args([\"--collect=all\"]).input(input_under_test(\"e2e-menagerie\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
INFO zizmor: skipping impostor-commit: can't run without a GitHub API token
|
||||
INFO zizmor: skipping ref-confusion: can't run without a GitHub API token
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/e2e.rs
|
||||
expression: "zizmor().output(OutputMode::Both).input(input_under_test(\"e2e-menagerie\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
INFO zizmor: skipping impostor-commit: can't run without a GitHub API token
|
||||
INFO zizmor: skipping ref-confusion: can't run without a GitHub API token
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"artipacked.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"artipacked.yml\")).run()?"
|
||||
---
|
||||
warning[artipacked]: credential persistence through GitHub Actions artifacts
|
||||
--> @@INPUT@@:15:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"artipacked.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"artipacked.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
warning[artipacked]: credential persistence through GitHub Actions artifacts
|
||||
--> @@INPUT@@:15:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"artipacked/issue-447-repro.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"artipacked/issue-447-repro.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
warning[artipacked]: credential persistence through GitHub Actions artifacts
|
||||
--> @@INPUT@@:19:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"artipacked.yml\")).args([\"--persona=pedantic\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"artipacked.yml\")).args([\"--persona=pedantic\"]).run()?"
|
||||
---
|
||||
warning[artipacked]: credential persistence through GitHub Actions artifacts
|
||||
--> @@INPUT@@:15:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"bot-conditions.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"bot-conditions.yml\")).run()?"
|
||||
---
|
||||
error[dangerous-triggers]: use of fundamentally insecure workflow trigger
|
||||
--> @@INPUT@@:1:1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"cache-poisoning/issue-343-repro.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[cache-poisoning]: runtime artifacts potentially vulnerable to a cache poisoning attack
|
||||
--> @@INPUT@@:5:1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"cache-poisoning/caching-opt-in-boolean-toggle.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"cache-poisoning/caching-opt-in-boolean-toggle.yml\")).run()?"
|
||||
---
|
||||
error[cache-poisoning]: runtime artifacts potentially vulnerable to a cache poisoning attack
|
||||
--> @@INPUT@@:1:1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"cache-poisoning/caching-opt-in-multi-value-toggle.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"cache-poisoning/caching-opt-in-multi-value-toggle.yml\")).run()?"
|
||||
---
|
||||
error[cache-poisoning]: runtime artifacts potentially vulnerable to a cache poisoning attack
|
||||
--> @@INPUT@@:1:1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"cache-poisoning/no-cache-aware-steps.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"cache-poisoning/no-cache-aware-steps.yml\")).run()?"
|
||||
---
|
||||
No findings to report. Good job!
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"cache-poisoning/caching-disabled-by-default.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"cache-poisoning/caching-disabled-by-default.yml\")).run()?"
|
||||
---
|
||||
No findings to report. Good job!
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().output(OutputMode::Stderr).offline(true).unsetenv(\"GH_TOKEN\").args([\"pypa/sampleproject\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().expects_failure(true).offline(true).unsetenv(\"GH_TOKEN\").args([\"pypa/sampleproject\"]).run()?"
|
||||
---
|
||||
fatal: no audit was performed
|
||||
error: can't retrieve repository: pypa/sampleproject
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/issue-472-repro.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/issue-472-repro.yml\")).run()?"
|
||||
---
|
||||
warning[excessive-permissions]: overly broad permissions
|
||||
--> @@INPUT@@:19:3
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/reusable-workflow-call.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/reusable-workflow-call.yml\")).run()?"
|
||||
---
|
||||
warning[excessive-permissions]: overly broad permissions
|
||||
--> @@INPUT@@:7:3
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/reusable-workflow-other-triggers.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/reusable-workflow-other-triggers.yml\")).run()?"
|
||||
---
|
||||
warning[excessive-permissions]: overly broad permissions
|
||||
--> @@INPUT@@:1:1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/issue-336-repro.yml\")).args([\"--pedantic\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/issue-336-repro.yml\")).args([\"--pedantic\"]).run()?"
|
||||
---
|
||||
error[excessive-permissions]: overly broad permissions
|
||||
--> @@INPUT@@:4:3
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/workflow-default-perms.yml\")).args([\"--pedantic\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/workflow-default-perms.yml\")).args([\"--pedantic\"]).run()?"
|
||||
---
|
||||
warning[excessive-permissions]: overly broad permissions
|
||||
--> @@INPUT@@:1:1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/workflow-read-all.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/workflow-read-all.yml\")).run()?"
|
||||
---
|
||||
warning[excessive-permissions]: overly broad permissions
|
||||
--> @@INPUT@@:3:1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/workflow-write-all.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/workflow-write-all.yml\")).run()?"
|
||||
---
|
||||
error[excessive-permissions]: overly broad permissions
|
||||
--> @@INPUT@@:3:1
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/workflow-empty-perms.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/workflow-empty-perms.yml\")).run()?"
|
||||
---
|
||||
No findings to report. Good job!
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/jobs-broaden-permissions.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/jobs-broaden-permissions.yml\")).run()?"
|
||||
---
|
||||
warning[excessive-permissions]: overly broad permissions
|
||||
--> @@INPUT@@:6:3
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/workflow-write-explicit.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/workflow-write-explicit.yml\")).run()?"
|
||||
---
|
||||
error[excessive-permissions]: overly broad permissions
|
||||
--> @@INPUT@@:5:3
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/workflow-default-perms-all-jobs-explicit.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/workflow-default-perms-all-jobs-explicit.yml\")).run()?"
|
||||
---
|
||||
No findings to report. Good job! (1 suppressed)
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"excessive-permissions/issue-336-repro.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"excessive-permissions/issue-336-repro.yml\")).run()?"
|
||||
---
|
||||
No findings to report. Good job! (1 suppressed)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().config(input_under_test(&format!(\"forbidden-uses/configs/{config}.yml\"))).input(input_under_test(\"forbidden-uses/forbidden-uses-menagerie.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[forbidden-uses]: forbidden action used
|
||||
--> @@INPUT@@:12:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().config(input_under_test(&format!(\"forbidden-uses/configs/{config}.yml\"))).input(input_under_test(\"forbidden-uses/forbidden-uses-menagerie.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[forbidden-uses]: forbidden action used
|
||||
--> @@INPUT@@:12:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().config(input_under_test(&format!(\"forbidden-uses/configs/{config}.yml\"))).input(input_under_test(\"forbidden-uses/forbidden-uses-menagerie.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[forbidden-uses]: forbidden action used
|
||||
--> @@INPUT@@:13:9
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().config(input_under_test(&format!(\"forbidden-uses/configs/{config}.yml\"))).input(input_under_test(\"forbidden-uses/forbidden-uses-menagerie.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
No findings to report. Good job!
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"github-env/github-path.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"github-env/github-path.yml\")).run()?"
|
||||
---
|
||||
error[github-env]: dangerous use of environment file
|
||||
--> @@INPUT@@:14:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"github-env/issue-397-repro.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"github-env/issue-397-repro.yml\")).run()?"
|
||||
---
|
||||
error[github-env]: dangerous use of environment file
|
||||
--> @@INPUT@@:14:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"github-env/action.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"github-env/action.yml\")).run()?"
|
||||
---
|
||||
error[github-env]: dangerous use of environment file
|
||||
--> @@INPUT@@:10:7
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"insecure-commands.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"insecure-commands.yml\")).run()?"
|
||||
---
|
||||
error[insecure-commands]: execution of insecure workflow commands is enabled
|
||||
--> @@INPUT@@:10:5
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"insecure-commands/action.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"insecure-commands/action.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
error[insecure-commands]: execution of insecure workflow commands is enabled
|
||||
--> @@INPUT@@:18:7
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"insecure-commands.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"insecure-commands.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
error[insecure-commands]: execution of insecure workflow commands is enabled
|
||||
--> @@INPUT@@:10:5
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().output(OutputMode::Stderr).offline(true).input(input_under_test(\"invalid/invalid-workflow.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().expects_failure(true).offline(true).input(input_under_test(\"invalid/invalid-workflow.yml\")).run()?"
|
||||
---
|
||||
fatal: no audit was performed
|
||||
failed to register input: @@INPUT@@
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"overprovisioned-secrets.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"overprovisioned-secrets.yml\")).run()?"
|
||||
---
|
||||
warning[overprovisioned-secrets]: excessively provisioned secrets
|
||||
--> @@INPUT@@:12:18
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"ref-confusion/issue-518-repro.yml\")).offline(false).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[unpinned-uses]: unpinned action reference
|
||||
--> @@INPUT@@:12:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"ref-confusion.yml\")).offline(false).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
warning[ref-confusion]: git ref for action with ambiguous ref type
|
||||
--> @@INPUT@@:11:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"secrets-inherit.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"secrets-inherit.yml\")).run()?"
|
||||
---
|
||||
warning[secrets-inherit]: secrets unconditionally inherited by called workflow
|
||||
--> @@INPUT@@:7:5
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"self-hosted.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"self-hosted.yml\")).run()?"
|
||||
---
|
||||
No findings to report. Good job! (1 suppressed)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"self-hosted/self-hosted-runner-label.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"self-hosted/self-hosted-runner-label.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
note[self-hosted-runner]: runs on a self-hosted runner
|
||||
--> @@INPUT@@:8:5
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"self-hosted/self-hosted-runner-group.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"self-hosted/self-hosted-runner-group.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
note[self-hosted-runner]: runs on a self-hosted runner
|
||||
--> @@INPUT@@:8:5
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"self-hosted/self-hosted-matrix-dimension.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"self-hosted/self-hosted-matrix-dimension.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
note[self-hosted-runner]: runs on a self-hosted runner
|
||||
--> @@INPUT@@:10:5
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"self-hosted/self-hosted-matrix-inclusion.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"self-hosted/self-hosted-matrix-inclusion.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
note[self-hosted-runner]: runs on a self-hosted runner
|
||||
--> @@INPUT@@:10:5
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"self-hosted/self-hosted-matrix-exclusion.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"self-hosted/self-hosted-matrix-exclusion.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
No findings to report. Good job!
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"self-hosted/issue-283-repro.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"self-hosted/issue-283-repro.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
No findings to report. Good job!
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"self-hosted.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"self-hosted.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
note[self-hosted-runner]: runs on a self-hosted runner
|
||||
--> @@INPUT@@:10:5
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"template-injection/template-injection-dynamic-matrix.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"template-injection/template-injection-dynamic-matrix.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
warning[template-injection]: code injection via template expansion
|
||||
--> @@INPUT@@:19:9
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"template-injection/issue-22-repro.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
No findings to report. Good job! (2 suppressed)
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"template-injection/pr-317-repro.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"template-injection/pr-317-repro.yml\")).run()?"
|
||||
---
|
||||
warning[template-injection]: code injection via template expansion
|
||||
--> @@INPUT@@:27:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"template-injection/static-env.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"template-injection/static-env.yml\")).run()?"
|
||||
---
|
||||
help[template-injection]: code injection via template expansion
|
||||
--> @@INPUT@@:41:9
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"template-injection/issue-418-repro.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
No findings to report. Good job!
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"template-injection/pr-425-backstop/action.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[template-injection]: code injection via template expansion
|
||||
--> @@INPUT@@:12:7
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"template-injection/template-injection-static-matrix.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"template-injection/template-injection-static-matrix.yml\")).args([\"--persona=auditor\"]).run()?"
|
||||
---
|
||||
No findings to report. Good job!
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().config(input_under_test(\"unpinned-uses/configs/composite-2.yml\")).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[unpinned-uses]: unpinned action reference
|
||||
--> @@INPUT@@:13:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().config(input_under_test(\"unpinned-uses/configs/composite.yml\")).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[unpinned-uses]: unpinned action reference
|
||||
--> @@INPUT@@:11:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[unpinned-uses]: unpinned action reference
|
||||
--> @@INPUT@@:13:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().config(input_under_test(\"unpinned-uses/configs/empty.yml\")).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[unpinned-uses]: unpinned action reference
|
||||
--> @@INPUT@@:11:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().config(input_under_test(\"unpinned-uses/configs/hash-pin-everything.yml\")).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[unpinned-uses]: unpinned action reference
|
||||
--> @@INPUT@@:11:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().config(input_under_test(\"unpinned-uses/configs/ref-pin-everything.yml\")).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[unpinned-uses]: unpinned action reference
|
||||
--> @@INPUT@@:13:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().output(OutputMode::Stderr).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().expects_failure(true).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
---
|
||||
INFO zizmor: skipping impostor-commit: can't run without a GitHub API token
|
||||
INFO zizmor: skipping ref-confusion: can't run without a GitHub API token
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().output(OutputMode::Stderr).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().expects_failure(true).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
---
|
||||
INFO zizmor: skipping impostor-commit: can't run without a GitHub API token
|
||||
INFO zizmor: skipping ref-confusion: can't run without a GitHub API token
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"unpinned-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[unpinned-uses]: unpinned action reference
|
||||
--> @@INPUT@@:11:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"unpinned-uses/action.yml\")).args([\"--pedantic\"]).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[unpinned-uses]: unpinned action reference
|
||||
--> @@INPUT@@:8:7
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"unpinned-uses/issue-433-repro.yml\")).args([\"--pedantic\"]).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"unpinned-uses/issue-433-repro.yml\")).args([\"--pedantic\"]).run()?"
|
||||
---
|
||||
No findings to report. Good job!
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"unpinned-uses/issue-659-repro.yml\")).args([\"--pedantic\"]).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
warning[excessive-permissions]: overly broad permissions
|
||||
--> @@INPUT@@:1:1
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().output(OutputMode::Stderr).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().expects_failure(true).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
---
|
||||
INFO zizmor: skipping impostor-commit: can't run without a GitHub API token
|
||||
INFO zizmor: skipping ref-confusion: can't run without a GitHub API token
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().output(OutputMode::Stderr).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().expects_failure(true).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
---
|
||||
INFO zizmor: skipping impostor-commit: can't run without a GitHub API token
|
||||
INFO zizmor: skipping ref-confusion: can't run without a GitHub API token
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().output(OutputMode::Stderr).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().expects_failure(true).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
---
|
||||
INFO zizmor: skipping impostor-commit: can't run without a GitHub API token
|
||||
INFO zizmor: skipping ref-confusion: can't run without a GitHub API token
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().output(OutputMode::Stderr).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().expects_failure(true).config(input_under_test(&format!(\"unpinned-uses/configs/{tc}.yml\",))).input(input_under_test(\"unpinned-uses/menagerie-of-uses.yml\")).run()?"
|
||||
---
|
||||
INFO zizmor: skipping impostor-commit: can't run without a GitHub API token
|
||||
INFO zizmor: skipping ref-confusion: can't run without a GitHub API token
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(input_under_test(\"unpinned-uses.yml\")).args([\"--pedantic\"]).run()?"
|
||||
snapshot_kind: text
|
||||
---
|
||||
error[unpinned-uses]: unpinned action reference
|
||||
--> @@INPUT@@:11:9
|
||||
|
|
|
|||
|
|
@ -1,7 +1,6 @@
|
|||
---
|
||||
source: tests/integration/snapshot.rs
|
||||
expression: "zizmor().input(workflow_under_test(\"unredacted-secrets.yml\")).run()?"
|
||||
snapshot_kind: text
|
||||
expression: "zizmor().input(input_under_test(\"unredacted-secrets.yml\")).run()?"
|
||||
---
|
||||
warning[unredacted-secrets]: leaked secret values
|
||||
--> @@INPUT@@:14:18
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue