From 360c0b132cacce91eca3b0687ed7e66189375110 Mon Sep 17 00:00:00 2001
From: "QSL\\SumathiT" <sumathi.thirumani@quartech.com>
Date: Tue, 21 Jan 2025 16:38:09 -0800
Subject: [PATCH] git actions change.

---
 .../workflows/build.from.developer.branch.deploy.to.dev.yml  | 2 +-
 .github/workflows/build.from.main.branch.deploy.to.dev.yml   | 2 +-
 .../workflows/build.from.release.branch.deploy.to.dev.yml    | 2 +-
 .github/workflows/create_tag.yml                             | 4 ++--
 .github/workflows/deploy_prod.yml                            | 2 +-
 .github/workflows/deploy_test.yml                            | 2 +-
 .github/workflows/on.merge.to.release.branch.yml             | 2 +-
 .github/workflows/on.pr.yml                                  | 5 +++--
 .github/workflows/on.tag.rc.build.to.test.yml                | 2 +-
 9 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/.github/workflows/build.from.developer.branch.deploy.to.dev.yml b/.github/workflows/build.from.developer.branch.deploy.to.dev.yml
index 0503a49..5e89012 100644
--- a/.github/workflows/build.from.developer.branch.deploy.to.dev.yml
+++ b/.github/workflows/build.from.developer.branch.deploy.to.dev.yml
@@ -54,7 +54,7 @@ jobs:
 
     steps:
       - name: Check out repository
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
         with:
           ref: ${{ github.event.inputs.choice }}
 
diff --git a/.github/workflows/build.from.main.branch.deploy.to.dev.yml b/.github/workflows/build.from.main.branch.deploy.to.dev.yml
index 285c3b9..586154f 100644
--- a/.github/workflows/build.from.main.branch.deploy.to.dev.yml
+++ b/.github/workflows/build.from.main.branch.deploy.to.dev.yml
@@ -43,7 +43,7 @@ jobs:
 
     steps:
       - name: Check out repository
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
 
       - name: Determine image tags
         if: env.TAG == ''
diff --git a/.github/workflows/build.from.release.branch.deploy.to.dev.yml b/.github/workflows/build.from.release.branch.deploy.to.dev.yml
index d970101..01b917f 100644
--- a/.github/workflows/build.from.release.branch.deploy.to.dev.yml
+++ b/.github/workflows/build.from.release.branch.deploy.to.dev.yml
@@ -50,7 +50,7 @@ jobs:
 
     steps:
       - name: Check out repository
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
         with:
           ref: grad-release
 
diff --git a/.github/workflows/create_tag.yml b/.github/workflows/create_tag.yml
index 9f16e5b..9e20da4 100644
--- a/.github/workflows/create_tag.yml
+++ b/.github/workflows/create_tag.yml
@@ -35,7 +35,7 @@ jobs:
 
     steps:
       - name: Check out repository
-        uses: actions/checkout@v2
+        uses: actions/checkout@v4
 
       - name: Create tag
         uses: actions/github-script@v7
@@ -54,7 +54,7 @@ jobs:
           oc: 4
 
         # https://github.com/redhat-actions/oc-login#readme
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
       - name: Tag in OpenShift
         run: |
           set -eux
diff --git a/.github/workflows/deploy_prod.yml b/.github/workflows/deploy_prod.yml
index 45ec5f1..103be0c 100644
--- a/.github/workflows/deploy_prod.yml
+++ b/.github/workflows/deploy_prod.yml
@@ -40,7 +40,7 @@ jobs:
 
     steps:
       - name: Check out repository
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
 
       - name: Get latest tag
         uses: actions-ecosystem/action-get-latest-tag@v1
diff --git a/.github/workflows/deploy_test.yml b/.github/workflows/deploy_test.yml
index b19f981..5e981cf 100644
--- a/.github/workflows/deploy_test.yml
+++ b/.github/workflows/deploy_test.yml
@@ -40,7 +40,7 @@ jobs:
 
     steps:
       - name: Check out repository
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
 
       - name: Get latest tag
         uses: actions-ecosystem/action-get-latest-tag@v1
diff --git a/.github/workflows/on.merge.to.release.branch.yml b/.github/workflows/on.merge.to.release.branch.yml
index 763ecea..8b1a1ef 100644
--- a/.github/workflows/on.merge.to.release.branch.yml
+++ b/.github/workflows/on.merge.to.release.branch.yml
@@ -18,7 +18,7 @@ jobs:
     runs-on: ubuntu-22.04
     steps:
     - name: Git pull
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
     - name: Login to Artifactory
       uses: docker/login-action@v3
       with:
diff --git a/.github/workflows/on.pr.yml b/.github/workflows/on.pr.yml
index 146a9c9..0a24f2d 100644
--- a/.github/workflows/on.pr.yml
+++ b/.github/workflows/on.pr.yml
@@ -17,12 +17,13 @@ jobs:
         working-directory: api
 
     steps:
-      - uses: actions/checkout@v2
+      - uses: actions/checkout@v4
         with:
           fetch-depth: 0  # Shallow clones should be disabled for a better relevancy of analysis
       - name: Set up JDK 18
-        uses: actions/setup-java@v1
+        uses: actions/setup-java@v4
         with:
+          distribution: 'corretto'
           java-version: 18
       - uses: actions/cache@v1
         with:
diff --git a/.github/workflows/on.tag.rc.build.to.test.yml b/.github/workflows/on.tag.rc.build.to.test.yml
index 06d6ac1..3fe0eb9 100644
--- a/.github/workflows/on.tag.rc.build.to.test.yml
+++ b/.github/workflows/on.tag.rc.build.to.test.yml
@@ -22,7 +22,7 @@ jobs:
     steps:
       # Checkout
       - name: Git checkout
-        uses: actions/checkout@v3
+        uses: actions/checkout@v4
       # Build
       - name: Run a one-line script
         run: echo Building!