From 8de0fe7b31d40b0ec8167967c13c43fd804d231c Mon Sep 17 00:00:00 2001 From: Chris Povirk Date: Mon, 10 Aug 2026 13:59:19 -0400 Subject: [PATCH] Use `vX.Y.Z` tags instead of `vX` for version comments. Update `oracle-actions/setup-java` along the way. This prevents the `zizmor` trouble seen in https://github.com/google/google-java-format/pull/1442. --- .github/workflows/ci.yml | 10 +++++----- .github/workflows/release.yml | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index bb4ca761774..59a6c65d73c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,7 @@ jobs: with: access_token: ${{ github.token }} - name: 'Check out repository' - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: 'Set up JDK 21' @@ -67,14 +67,14 @@ jobs: distribution: 'zulu' cache: 'maven' - name: 'Set up JDK 28 from jdk.java.net' - uses: oracle-actions/setup-java@ec7274acdd237c7fe61395ed2edda22d756b5afe # v1 + uses: oracle-actions/setup-java@fff43251af9936a0e6a4d5d0946e14f1680e9b6b # v1.5.0 with: website: jdk.java.net release: 28 cache: 'maven' - name: 'Set up JDK ${{ matrix.java }} from jdk.java.net' if: ${{ matrix.java == 'EA' }} - uses: oracle-actions/setup-java@ec7274acdd237c7fe61395ed2edda22d756b5afe # v1 + uses: oracle-actions/setup-java@fff43251af9936a0e6a4d5d0946e14f1680e9b6b # v1.5.0 with: website: jdk.java.net release: ${{ matrix.java }} @@ -106,7 +106,7 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Check out repository' - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: 'Set up JDK 25' @@ -140,7 +140,7 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Check out repository' - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false - name: 'Set up JDK 25' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 4e6d6912256..8bf009c84b0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -16,7 +16,7 @@ jobs: contents: write steps: - name: Checkout - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: persist-credentials: false