From 7d863b988d3e17814d7bb98ed3bc58dda95bbdc0 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Tue, 17 Dec 2024 15:00:01 -0800 Subject: [PATCH 1/5] Fixed github action version in CI. Signed-off-by: AWSHurneyt --- .github/workflows/auto-release.yml | 2 +- .github/workflows/ci.yml | 6 +++--- .github/workflows/maven-publish.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto-release.yml b/.github/workflows/auto-release.yml index 4453d652..3d8c6b4f 100644 --- a/.github/workflows/auto-release.yml +++ b/.github/workflows/auto-release.yml @@ -22,7 +22,7 @@ jobs: - name: Get tag id: tag uses: dawidd6/action-get-tag@v1 - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: ncipollo/release-action@v1 with: github_token: ${{ steps.github_app_token.outputs.token }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 7b098d12..8b2b35e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,11 +29,11 @@ jobs: # this image tag is subject to change as more dependencies and updates will arrive over time image: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-version-linux }} # need to switch to root so that github actions can install runner binary on container without permission issues. - options: --user root + options: --user ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Java ${{ matrix.java }} uses: actions/setup-java@v1 @@ -62,7 +62,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Setup Java ${{ matrix.java }} uses: actions/setup-java@v1 diff --git a/.github/workflows/maven-publish.yml b/.github/workflows/maven-publish.yml index d8e9631d..71f10a93 100644 --- a/.github/workflows/maven-publish.yml +++ b/.github/workflows/maven-publish.yml @@ -23,7 +23,7 @@ jobs: with: distribution: temurin # Temurin is a distribution of adoptium java-version: 21 - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: aws-actions/configure-aws-credentials@v1 with: role-to-assume: ${{ secrets.PUBLISH_SNAPSHOTS_ROLE }} From 75689d6de31d7445e7c1f20e351444640ead5a28 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Tue, 17 Dec 2024 15:09:33 -0800 Subject: [PATCH 2/5] Only run CI for JDK21 Signed-off-by: AWSHurneyt --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8b2b35e1..cf5201fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,6 @@ jobs: matrix: java: - 21 - - 23 name: Build and Test runs-on: ubuntu-latest container: @@ -56,7 +55,6 @@ jobs: matrix: java: - 21 - - 23 name: Build and Test runs-on: windows-latest From bb36cc569ee2264d0dd20f45067b9eecbdc1e3b9 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Tue, 17 Dec 2024 15:15:24 -0800 Subject: [PATCH 3/5] Added start command step. Signed-off-by: AWSHurneyt --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf5201fc..a3a6f134 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,6 +59,9 @@ jobs: runs-on: windows-latest steps: + - name: Run start commands + run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }} + - name: Checkout uses: actions/checkout@v4 From 8c2425f6f1e1e75514ac4b4cf158455d88051c14 Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Tue, 17 Dec 2024 15:16:26 -0800 Subject: [PATCH 4/5] Added start command step. Signed-off-by: AWSHurneyt --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a3a6f134..a5f5bd25 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -31,6 +31,9 @@ jobs: options: --user ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-options }} steps: + - name: Run start commands + run: ${{ needs.Get-CI-Image-Tag.outputs.ci-image-start-command }} + - name: Checkout uses: actions/checkout@v4 From ed62020ffda77da65439ebcc1ae061412919912d Mon Sep 17 00:00:00 2001 From: AWSHurneyt Date: Tue, 17 Dec 2024 15:21:52 -0800 Subject: [PATCH 5/5] Fixed CI config. Signed-off-by: AWSHurneyt --- .github/workflows/ci.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a5f5bd25..2172e13f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,8 +6,6 @@ on: pull_request: branches: - "*" -env: - ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true jobs: Get-CI-Image-Tag: