From d37c47cf8dac202d6e5841029ed292db147b43db Mon Sep 17 00:00:00 2001 From: Luis Alamo <12864617+luismalamoc@users.noreply.github.com> Date: Mon, 19 Oct 2026 12:55:24 -0300 Subject: [PATCH 1/2] [RUN-5043] Pin container images and GitHub Actions by digest --- .github/workflows/gradle.yml | 6 +++--- .github/workflows/release.yml | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 12e9342..6aebda4 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,14 +8,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v7 + - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - name: Get Fetch Tags run: git -c protocol.version=2 fetch --tags --progress --no-recurse-submodules origin if: "!contains(github.ref, 'refs/tags')" - name: Set up JDK 17 - uses: actions/setup-java@v6 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: java-version: '17' distribution: 'zulu' @@ -27,7 +27,7 @@ jobs: id: get_version run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT - name: Upload plugin jar - uses: actions/upload-artifact@v7 + uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 with: # Artifact name name: Grails-Plugin-${{ steps.get_version.outputs.VERSION }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ad06698..d472660 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,11 +13,11 @@ jobs: PKGCLD_REPO_URL: ${{ vars.PKGCLD_REPO_URL }} steps: - name: Checkout code - uses: actions/checkout@v7 + uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 - name: Set up JDK 17 - uses: actions/setup-java@v6 + uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 with: java-version: '17' distribution: 'zulu' From 202821a9b870567f9ce4959b6260e7d9472d2f20 Mon Sep 17 00:00:00 2001 From: Luis Alamo <12864617+luismalamoc@users.noreply.github.com> Date: Mon, 19 Oct 2026 13:23:00 -0300 Subject: [PATCH 2/2] [RUN-5043] Call shared setup-java and upload-artifact actions --- .github/workflows/gradle.yml | 11 ++--------- .github/workflows/release.yml | 10 +--------- 2 files changed, 3 insertions(+), 18 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 6aebda4..01d825a 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -8,17 +8,10 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - fetch-depth: 0 + - uses: rundeck-plugins/.github/.github/actions/setup-java@main - name: Get Fetch Tags run: git -c protocol.version=2 fetch --tags --progress --no-recurse-submodules origin if: "!contains(github.ref, 'refs/tags')" - - name: Set up JDK 17 - uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 - with: - java-version: '17' - distribution: 'zulu' - name: Grant execute permission for gradlew run: chmod +x gradlew - name: Build with Gradle @@ -27,7 +20,7 @@ jobs: id: get_version run: VERSION=$(./gradlew currentVersion -q -Prelease.quiet) && echo "VERSION=$VERSION" >> $GITHUB_OUTPUT - name: Upload plugin jar - uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 # v7.0.2 + uses: rundeck-plugins/.github/.github/actions/upload-artifact@main with: # Artifact name name: Grails-Plugin-${{ steps.get_version.outputs.VERSION }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d472660..8bebdc3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,15 +12,7 @@ jobs: env: PKGCLD_REPO_URL: ${{ vars.PKGCLD_REPO_URL }} steps: - - name: Checkout code - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - with: - fetch-depth: 0 - - name: Set up JDK 17 - uses: actions/setup-java@b843ebf9b913146b38da2eaa7aeddf76074ae1ad # v6.1.0 - with: - java-version: '17' - distribution: 'zulu' + - uses: rundeck-plugins/.github/.github/actions/setup-java@main - name: Build with Gradle run: ./gradlew build - name: Get Release Version