From ddcea6dafc4d702d15fd52060b5649bdcde2edb8 Mon Sep 17 00:00:00 2001 From: bowenlan-amzn Date: Thu, 18 Jul 2024 08:54:38 -0700 Subject: [PATCH] Fix github action (#1208) (cherry picked from commit 27bc6649c8d3ecdeaf1814c7439adfb33269eaa2) Signed-off-by: bowenlan-amzn --- .github/workflows/bwc-test-workflow.yml | 5 +++-- .github/workflows/docker-security-test-workflow.yml | 5 +++-- .github/workflows/multi-node-test-workflow.yml | 2 ++ .github/workflows/security-test-workflow.yml | 7 +++++-- .github/workflows/test-and-build-workflow.yml | 2 ++ 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/bwc-test-workflow.yml b/.github/workflows/bwc-test-workflow.yml index 692880cdd..656aea4cc 100644 --- a/.github/workflows/bwc-test-workflow.yml +++ b/.github/workflows/bwc-test-workflow.yml @@ -14,9 +14,10 @@ jobs: steps: # This step uses the setup-java Github action: https://github.com/actions/setup-java - name: Set Up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 17 + distribution: temurin # Temurin is a distribution of adoptium + java-version: 21 # index-management - name: Checkout Branch uses: actions/checkout@v2 diff --git a/.github/workflows/docker-security-test-workflow.yml b/.github/workflows/docker-security-test-workflow.yml index 496f8f469..6511ebfec 100644 --- a/.github/workflows/docker-security-test-workflow.yml +++ b/.github/workflows/docker-security-test-workflow.yml @@ -13,9 +13,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Set Up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 17 + distribution: temurin # Temurin is a distribution of adoptium + java-version: 21 - name: Checkout Branch uses: actions/checkout@v2 - name: Build Index Management diff --git a/.github/workflows/multi-node-test-workflow.yml b/.github/workflows/multi-node-test-workflow.yml index 73881a6f1..814422451 100644 --- a/.github/workflows/multi-node-test-workflow.yml +++ b/.github/workflows/multi-node-test-workflow.yml @@ -7,6 +7,8 @@ on: push: branches: - "**" +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true jobs: Get-CI-Image-Tag: diff --git a/.github/workflows/security-test-workflow.yml b/.github/workflows/security-test-workflow.yml index 855147d27..ddfe712fa 100644 --- a/.github/workflows/security-test-workflow.yml +++ b/.github/workflows/security-test-workflow.yml @@ -7,6 +7,8 @@ on: push: branches: - "**" +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true jobs: Get-CI-Image-Tag: @@ -28,9 +30,10 @@ jobs: steps: # This step uses the setup-java Github action: https://github.com/actions/setup-java - name: Set Up JDK - uses: actions/setup-java@v1 + uses: actions/setup-java@v2 with: - java-version: 17 + distribution: temurin # Temurin is a distribution of adoptium + java-version: 21 # index-management - name: Checkout Branch uses: actions/checkout@v2 diff --git a/.github/workflows/test-and-build-workflow.yml b/.github/workflows/test-and-build-workflow.yml index 70f084edd..cf6007515 100644 --- a/.github/workflows/test-and-build-workflow.yml +++ b/.github/workflows/test-and-build-workflow.yml @@ -6,6 +6,8 @@ on: push: branches: - "**" +env: + ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION: true jobs: Get-CI-Image-Tag: