镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Don't restore the Maven cache in the release workflow #110

Closed

Description

@yawkat

Every job in build-all-and-publish.yml restores setup-java cache: maven (lines 74, 132, 177, 232, 245). That includes the native build jobs and the credentialed publish step. docs.yml (line 27) and test.yml run on the same refs and share the same key (setup-java-<os>-maven-<hash(pom.xml)>).

pom.xml has a fixed version, so the key rarely changes, and any job on the same ref or on main can write to it. That includes code running inside the docs job (unpinned PyPI dependencies), whether or not cache: maven is set there. A poisoned ~/.m2 would then flow into the native libraries and the signed jar.

Fix: remove cache: maven from every setup-java step in build-all-and-publish.yml. Removing it from docs.yml alone is not enough, because only the reading side can be fixed. Releases are rare, so downloading fresh from Central costs a few minutes at most. test.yml can keep its cache.

Activity

  1. self-assigned this
    on Sep 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions