setup-java/.github/workflows
Bruno Borges 5a9d84a2f1 Harden workflows with least-privilege permissions and zizmor
Apply GitHub Actions security best practices to the action's own
workflows and integrate zizmor to catch regressions.

- Add explicit least-privilege `permissions:` to every workflow
  (contents: read for read-only workflows; default-deny `{}` with
  job-scoped grants for codeql, publish-immutable-actions and
  update-config-files).
- Set `persist-credentials: false` on all checkout steps that don't
  need the GITHUB_TOKEN afterwards.
- Move `${{ ... }}` expansions out of `run:` blocks into `env:` vars
  to avoid template injection.
- Pin the alpine container image (alpine:latest -> alpine:3.21).
- Add a zizmor CI workflow that uploads SARIF to code scanning, plus a
  `.github/zizmor.yml` pinning policy (ref-pin for actions/* and
  github/*, hash-pin for third-party actions).

zizmor now reports no findings (offline and online).

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-22 14:57:44 -04:00
..
basic-validation.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
check-dist.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
codeql-analysis.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
e2e-cache-dependency-path.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
e2e-cache.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
e2e-local-file.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
e2e-publishing.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
e2e-versions.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
licensed.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
publish-immutable-actions.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
release-new-action-version.yml Bump actions/publish-action from 0.3.0 to 0.4.0 (#912) 2025-12-03 20:46:45 -06:00
update-config-files.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
zizmor.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00