Skip to content

[BUG]: Failing test in 1.26.1: e2e::issue_1745 #2139

Description

@kpcyrd

Pre-submission checks

  • I am not filing a feature request. These should be filed via the feature request form instead.
  • I have checked the Troubleshooting Guide for my problem.
  • I have looked through both the open and closed issues for a duplicate report.
  • I affirm that I have followed the AI policy and that this report constitutes my own words and understanding.

zizmor version

1.26.1

Expected behavior

cargo test works

Actual behavior

---- e2e::issue_1745 stdout ----
━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ Snapshot Summary ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Snapshot: issue_1745
Source: crates/zizmor/tests/integration/e2e.rs:640
────────────────────────────────────────────────────────────────────────────────
Expression: zizmor()
    .offline(true)
    .no_config(true)
    .working_dir(input_under_test("issue-1745-repro"))
    .input(".github")
    .args(["--format=github"])
    .run()?
────────────────────────────────────────────────────────────────────────────────
-old snapshot
+new results
────────────┬───────────────────────────────────────────────────────────────────
    1       │-::warning file=@@WORKING_DIR@@/@@TEST_PREFIX@@/issue-1745-repro/@@INPUT@@/workflows/test.yml,line=10,title=artipacked::test.yml:10: credential persistence through GitHub Actions artifacts: does not set persist-credentials: false
    2       │-::error file=@@WORKING_DIR@@/@@TEST_PREFIX@@/issue-1745-repro/@@INPUT@@/workflows/test.yml,line=10,title=unpinned-uses::test.yml:10: unpinned action reference: action is not pinned to a hash (required by blanket policy)
          1 │+::warning file=workflows/test.yml,line=10,title=artipacked::test.yml:10: credential persistence through GitHub Actions artifacts: does not set persist-credentials: false
          2 │+::error file=workflows/test.yml,line=10,title=unpinned-uses::test.yml:10: unpinned action reference: action is not pinned to a hash (required by blanket policy)
────────────┴───────────────────────────────────────────────────────────────────
To update snapshots run `cargo insta review`
Stopped on the first failure. Run `cargo insta test` to run all snapshots.

thread 'e2e::issue_1745' (47673) panicked at /build/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/insta-1.47.2/src/runtime.rs:719:13:
snapshot assertion for 'issue_1745' failed in line 640
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Reproduction steps

  1. cargo test --frozen

Logs


Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    downstreampackagingPackaging of zizmor in various ecosystems

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions