Skip to content

fix: assess and resolve cache-poisoning, excessive-permissions, and artipacked findings #1534

Closed

Description

@planetf1

Summary

Tracked from #331 (zizmor CI gate). PR #1530 introduced zizmor enforcement and found three lower-priority findings that require a maintainer judgement call rather than a purely mechanical fix.


Finding 1: cache-poisoning — docs-publish.yml lines 75, 81

astral-sh/setup-uv and actions/setup-node use caching in the build-and-validate job, triggered on push to main. zizmor flags this as a potential cache poisoning vector.

Actual risk: Low. push to main is branch-protected; only maintainers can push.

Options:

  1. Add inline # zizmor: ignore[cache-poisoning] on the two uses: lines with a rationale comment
  2. Remove enable-cache: true / cache: npm to eliminate caching (slower builds)
  3. Keep the current suppression in zizmor.yml

Finding 2: excessive-permissions — dispatch-to-contribs.yml line 20

The dispatch job has no permissions: block, inheriting the repo default token scope. The job uses an app token, not GITHUB_TOKEN, so the fix is a one-liner:

  dispatch:
    permissions: {}
    runs-on: ubuntu-latest

Finding 3: artipacked — publish-release.yml line 168

The snapshot-docs job's checkout step does not set persist-credentials: false because the job immediately pushes a commit using that credential. This is intentional.

Fix: Add inline # zizmor: ignore[artipacked] with a comment explaining the intent.


Definition of done

For each finding: either fix the root cause OR add an inline # zizmor: ignore[rule] with an explanatory comment, then remove the corresponding entry from .github/zizmor.yml.

Activity

  1. added
    p2
    security
    chore
    on Aug 11, 2026
  2. skritosss commented on Oct 11, 2026

    @skritosss
    Contributor

    Can I take this one? The changes are ready and checked. I'll open a PR once you confirm.

  3. markstur commented on Oct 23, 2026

    @markstur
    Contributor

    @skritosss I assigned you. Thanks for asking!

    Note: I assigned myself for tracking for now (not for implementing).

  4. markstur commented on Oct 30, 2026

    @markstur
    Contributor

    @skritosss are you still interested in this one?

  5. removed their assignment
    on Nov 5, 2026
  6. ajbozarth commented on Nov 6, 2026

    @ajbozarth
    Member

    FYI I'm working on a completely separate bug fix around doc publishing that is actually going to indirectly solve finding 1 and 3, posting an FYI here now since I did not get a PR open by EOD like I expected and have not opened a tracking issue for it yet

  7. ajbozarth commented on Nov 10, 2026

    @ajbozarth
    Member

    Apologizes @skritosss after fixing items 1 and 3 indirectly in #1802 I realized item 2 was a one line fix so I threw it in as well to just close out this issue with that work, so I ended up stealing this from you by accident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

chorep2security

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions