From 16ae3c2d9602b4cbc7944299cd3f3ad36fa12098 Mon Sep 17 00:00:00 2001
From: "Andrew W. Harn" <andrew.harn@broadcom.com>
Date: Fri, 2 Feb 2024 13:44:52 +0000
Subject: [PATCH 1/3] Update Workflows to Node 20

Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
---
 .github/workflows/audit.yml           |  4 ++--
 .github/workflows/auto-comment.yml    |  2 +-
 .github/workflows/changelog.yml       |  2 +-
 .github/workflows/codeql.yml          |  2 +-
 .github/workflows/linter.yml          |  4 ++--
 .github/workflows/stale.yml           |  2 +-
 .github/workflows/zowe-cli-plugin.yml | 12 ++++++------
 7 files changed, 14 insertions(+), 14 deletions(-)

diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml
index cc2fb980..1e9c1c4c 100644
--- a/.github/workflows/audit.yml
+++ b/.github/workflows/audit.yml
@@ -15,10 +15,10 @@ jobs:
 
     steps:
     - name: Checkout
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
 
     - name: Use Node.js LTS
-      uses: actions/setup-node@v3
+      uses: actions/setup-node@v4
       with:
         node-version: lts/*
 
diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml
index e5a899be..c6422055 100644
--- a/.github/workflows/auto-comment.yml
+++ b/.github/workflows/auto-comment.yml
@@ -9,7 +9,7 @@ jobs:
     name: Process Label Action
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/checkout@v3
+      - uses: actions/checkout@v4
       - name: Process Label Action
         uses: hramos/respond-to-issue-based-on-label@v2
         with:
diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml
index fc85fbe6..454d9d24 100644
--- a/.github/workflows/changelog.yml
+++ b/.github/workflows/changelog.yml
@@ -14,7 +14,7 @@ jobs:
 
     steps:
     - name: Checkout
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
       with:
         fetch-depth: 0
 
diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml
index e06674e7..01e6f130 100644
--- a/.github/workflows/codeql.yml
+++ b/.github/workflows/codeql.yml
@@ -30,7 +30,7 @@ jobs:
 
     steps:
     - name: Checkout repository
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
 
     - name: Initialize CodeQL
       uses: github/codeql-action/init@v2
diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml
index a4bb2ddc..8c9b5c91 100644
--- a/.github/workflows/linter.yml
+++ b/.github/workflows/linter.yml
@@ -17,10 +17,10 @@ jobs:
 
     steps:
     - name: Checkout
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
 
     - name: Use Node.js LTS
-      uses: actions/setup-node@v3
+      uses: actions/setup-node@v4
       with:
         node-version: lts/*
 
diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml
index 4d7ac817..17f632a6 100644
--- a/.github/workflows/stale.yml
+++ b/.github/workflows/stale.yml
@@ -11,7 +11,7 @@ jobs:
   stale:
     runs-on: ubuntu-latest
     steps:
-      - uses: actions/stale@v8
+      - uses: actions/stale@v9
         with:
           # General rules applied to both, issues and pull requests (PRs)
           start-date: "2022-07-30T00:00:00Z"
diff --git a/.github/workflows/zowe-cli-plugin.yml b/.github/workflows/zowe-cli-plugin.yml
index 89786a03..d25b9a1e 100644
--- a/.github/workflows/zowe-cli-plugin.yml
+++ b/.github/workflows/zowe-cli-plugin.yml
@@ -40,10 +40,10 @@ jobs:
 
     steps:
     - name: Checkout
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
 
     - name: Use Node.js ${{ matrix.node-version }}
-      uses: actions/setup-node@v3
+      uses: actions/setup-node@v4
       with:
         node-version: ${{ matrix.node-version }}
 
@@ -70,7 +70,7 @@ jobs:
 
     - name: Archive Results
       if: ${{ always() && steps.build.outcome == 'success' }}
-      uses: actions/upload-artifact@v3
+      uses: actions/upload-artifact@v4
       with:
         name: ${{ matrix.os }}-${{ matrix.node-version }}-results
         path: |
@@ -78,7 +78,7 @@ jobs:
 
     - name: Upload Results to Codecov
       if: ${{ always() && steps.build.outcome == 'success' }}
-      uses: codecov/codecov-action@v3
+      uses: codecov/codecov-action@v4
       with:
         env_vars: OS,NODE
 
@@ -89,14 +89,14 @@ jobs:
 
     steps:
     - name: Checkout
-      uses: actions/checkout@v3
+      uses: actions/checkout@v4
       with:
         fetch-depth: 0
         persist-credentials: false
         ref: ${{ github.ref }}
 
     - name: Use Node.js LTS
-      uses: actions/setup-node@v3
+      uses: actions/setup-node@v4
       with:
         node-version: 'lts/*'
 

From 800c9b5dafe5c1a50bec4ea9be4d75dd81970b7e Mon Sep 17 00:00:00 2001
From: "Andrew W. Harn" <andrew.harn@broadcom.com>
Date: Fri, 2 Feb 2024 16:08:13 +0000
Subject: [PATCH 2/3] Add missing CodeCov Token

Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
---
 .github/workflows/zowe-cli-plugin.yml | 1 +
 1 file changed, 1 insertion(+)

diff --git a/.github/workflows/zowe-cli-plugin.yml b/.github/workflows/zowe-cli-plugin.yml
index d25b9a1e..a53b3557 100644
--- a/.github/workflows/zowe-cli-plugin.yml
+++ b/.github/workflows/zowe-cli-plugin.yml
@@ -81,6 +81,7 @@ jobs:
       uses: codecov/codecov-action@v4
       with:
         env_vars: OS,NODE
+        token: ${{ secrets.CODECOV_TOKEN }}
 
   release:
     if: github.event_name == 'push' && github.ref_protected

From d0d912ab4b4c85948bbf0502024edc79e1fec0b0 Mon Sep 17 00:00:00 2001
From: "Andrew W. Harn" <andrew.harn@broadcom.com>
Date: Fri, 2 Feb 2024 19:46:40 +0000
Subject: [PATCH 3/3] Use maintained label action

Signed-off-by: Andrew W. Harn <andrew.harn@broadcom.com>
---
 .github/workflows/auto-comment.yml | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/.github/workflows/auto-comment.yml b/.github/workflows/auto-comment.yml
index c6422055..8f0f97b6 100644
--- a/.github/workflows/auto-comment.yml
+++ b/.github/workflows/auto-comment.yml
@@ -11,7 +11,7 @@ jobs:
     steps:
       - uses: actions/checkout@v4
       - name: Process Label Action
-        uses: hramos/respond-to-issue-based-on-label@v2
+        uses: dessant/label-actions@v4
         with:
-          repo-token: ${{ secrets.GITHUB_TOKEN }}
-          configuration-path: '.github/label-actions.yml'
+          github-token: ${{ secrets.GITHUB_TOKEN }}
+          config-path: '.github/label-actions.yml'