From a026dbe0cbe37a473748d25b048d81c2bc9f80cb Mon Sep 17 00:00:00 2001 From: Andy Sadler Date: Wed, 11 Oct 2023 17:14:01 -0500 Subject: [PATCH] ci: bump actions to silence node12 warnings (#481) As of [June 2023][1], GitHub no longer uses node v12 within its actions runner by default. They have been encouraging action authors to switch to node v16 and [encouraging users][2] to use the new versions of the actions when they become available, with the intent on removing node v12 sometime in the near future. Bump the versions of the affected actions to bring this in line. [1]: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/ [2]: https://github.com/codeready-toolchain/host-operator/actions/runs/6421632076 Signed-off-by: Andy Sadler Co-authored-by: Alexey Kazakov --- .github/workflows/ci-build.yml | 12 ++++++------ .github/workflows/ci-check-gomod.yml | 2 +- .github/workflows/operator-cd.yml | 8 ++++---- .../workflows/publish-operators-for-e2e-tests.yml | 10 +++++----- 4 files changed, 16 insertions(+), 16 deletions(-) diff --git a/.github/workflows/ci-build.yml b/.github/workflows/ci-build.yml index 398eba58..f25c9e8b 100644 --- a/.github/workflows/ci-build.yml +++ b/.github/workflows/ci-build.yml @@ -15,12 +15,12 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: 1.19.x - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Generate Assets run: | @@ -49,7 +49,7 @@ jobs: go-version: 1.19.x - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Generate Assets run: | @@ -68,10 +68,10 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Generate SBOM - uses: CycloneDX/gh-gomod-generate-sbom@v1 + uses: CycloneDX/gh-gomod-generate-sbom@v2 with: version: v1 - args: mod -licenses -json -output - \ No newline at end of file + args: mod -licenses -json -output - diff --git a/.github/workflows/ci-check-gomod.yml b/.github/workflows/ci-check-gomod.yml index 264a925e..36ffb0ec 100644 --- a/.github/workflows/ci-check-gomod.yml +++ b/.github/workflows/ci-check-gomod.yml @@ -12,7 +12,7 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: check run: | diff --git a/.github/workflows/operator-cd.yml b/.github/workflows/operator-cd.yml index 151c81b6..9ad4d493 100644 --- a/.github/workflows/operator-cd.yml +++ b/.github/workflows/operator-cd.yml @@ -17,24 +17,24 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles ('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: '3.x' diff --git a/.github/workflows/publish-operators-for-e2e-tests.yml b/.github/workflows/publish-operators-for-e2e-tests.yml index ae0cea7a..c5229278 100644 --- a/.github/workflows/publish-operators-for-e2e-tests.yml +++ b/.github/workflows/publish-operators-for-e2e-tests.yml @@ -18,7 +18,7 @@ jobs: steps: # Checkout from PR event - in that case the comment field is empty - name: Checkout code from PR event - uses: actions/checkout@v2 + uses: actions/checkout@v4 if: ${{ github.event.comment == '' }} with: ref: ${{github.event.pull_request.head.ref}} @@ -39,7 +39,7 @@ jobs: # Checkout the code based on the data retrieved from the previous step # Is executed only for comment events - in that case the pull_request field is empty - name: Checkout code from PR - uses: actions/checkout@v2 + uses: actions/checkout@v4 if: ${{ github.event.pull_request == '' }} with: repository: ${{ fromJson(steps.request.outputs.data).head.repo.full_name }} @@ -47,19 +47,19 @@ jobs: fetch-depth: 0 - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v4 with: go-version: ${{ env.GO_VERSION }} - name: Cache dependencies - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: ~/go/pkg/mod key: ${{ runner.os }}-go-${{ hashFiles ('**/go.sum') }} restore-keys: | ${{ runner.os }}-go- - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 with: python-version: '3.x'