setup-java/.github
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
..
ISSUE_TEMPLATE Add and configure ESLint and update configuration for Prettier (#458) 2023-03-09 14:49:35 +02:00
workflows Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00
CODEOWNERS Update CODEOWNERS 2022-12-26 09:43:06 +01:00
dependabot.yml Create dependabot.yml (#722) 2025-01-21 16:15:18 -06:00
java.json Add problem matcher (#4) 2019-07-11 22:57:54 -04:00
pull_request_template.md Add issue and pr templates 2021-02-05 09:44:08 +03:00
zizmor.yml Harden workflows with least-privilege permissions and zizmor 2026-06-22 14:57:44 -04:00