From 07a841b9acf0a0dcb1a495c5cb0ee8f77e283fc9 Mon Sep 17 00:00:00 2001 From: James Sumners Date: Wed, 12 Jun 2024 15:36:02 -0400 Subject: [PATCH] chore: Updated GitHub Actions versions (#2272) --- .github/workflows/ci-workflow.yml | 52 +++++++++---------- .github/workflows/notify-release.yml | 4 +- .github/workflows/post-release.yml | 4 +- .github/workflows/prep-release.yml | 6 +-- .github/workflows/publish-branch.yml | 4 +- .github/workflows/release-creation.yml | 6 +-- .github/workflows/repolinter.yml | 4 +- .github/workflows/smoke-test-workflow.yml | 4 +- .github/workflows/update-snyk-prs.yml | 4 +- .github/workflows/validate-pr.yml | 6 +-- .github/workflows/versioned-coverage.yml | 4 +- .../workflows/versioned-security-agent.yml | 4 +- 12 files changed, 51 insertions(+), 51 deletions(-) diff --git a/.github/workflows/ci-workflow.yml b/.github/workflows/ci-workflow.yml index b65bf4401e..871c9f34d9 100644 --- a/.github/workflows/ci-workflow.yml +++ b/.github/workflows/ci-workflow.yml @@ -23,7 +23,7 @@ jobs: - uses: actions/checkout@v4 with: fetch-depth: 2 - - uses: dorny/paths-filter@v3 + - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 id: filter with: filters: | @@ -53,9 +53,9 @@ jobs: node-version: [lts/*] steps: - - 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 }} - name: Install Dependencies @@ -77,9 +77,9 @@ jobs: node-version: [lts/*] steps: - - 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 }} - name: Install Dependencies @@ -101,9 +101,9 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - - 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 }} - name: Install Dependencies @@ -111,7 +111,7 @@ jobs: - name: Run Unit Tests run: npm run unit - name: Archive Unit Test Coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: unit-tests-${{ matrix.node-version }} path: ./coverage/unit/lcov.info @@ -133,9 +133,9 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - - 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 }} - name: Install Dependencies @@ -145,14 +145,14 @@ jobs: - name: Run ESM Integration Tests run: npm run integration:esm - name: Archive Integration Test Coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: integration-tests-${{ matrix.node-version }} + name: integration-tests-cjs-${{ matrix.node-version }} path: ./coverage/integration/lcov.info - name: Archive Integration (ESM) Test Coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: - name: integration-tests-${{ matrix.node-version }} + name: integration-tests-esm-${{ matrix.node-version }} path: ./coverage/integration-esm/lcov.info versioned-internal: @@ -169,9 +169,9 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - - 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 }} - name: Install Dependencies @@ -186,13 +186,13 @@ jobs: JOBS: ${{ github.ref == 'refs/heads/main' && vars.NR_RUNNER && 16 || 4 }} C8_REPORTER: lcovonly - name: Archive Versioned Test Coverage - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: versioned-tests-${{ matrix.node-version }} path: ./coverage/versioned/lcov.info - name: Collect docker logs on failure if: failure() - uses: jwalton/gh-docker-logs@v2 + uses: jwalton/gh-docker-logs@2741064ab9d7af54b0b1ffb6076cf64c16f0220e with: dest: ./logs-${{ matrix.node-version }} - name: Tar logs @@ -200,7 +200,7 @@ jobs: run: tar cvzf ./logs-${{ matrix.node-version }}.tgz ./logs-${{ matrix.node-version }} - name: Upload logs to GitHub if: failure() - uses: actions/upload-artifact@master + uses: actions/upload-artifact@v4 with: name: logs-${{ matrix.node-version }}.tgz path: ./logs-${{ matrix.node-version }}.tgz @@ -220,9 +220,9 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - - 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 }} - name: Install Dependencies @@ -243,23 +243,23 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Download artifacts - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 - name: Post Unit Test Coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c with: token: ${{ secrets.CODECOV_TOKEN }} directory: unit-tests-${{ matrix.node-version }} flags: unit-tests-${{ matrix.node-version }} - name: Post Integration Test Coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c with: token: ${{ secrets.CODECOV_TOKEN }} directory: integration-tests-${{ matrix.node-version }} flags: integration-tests-${{ matrix.node-version }} - name: Post Versioned Test Coverage - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@125fc84a9a348dbcf27191600683ec096ec9021c with: token: ${{ secrets.CODECOV_TOKEN }} directory: versioned-tests-${{ matrix.node-version }} diff --git a/.github/workflows/notify-release.yml b/.github/workflows/notify-release.yml index 62f8e594d0..7f559a0a8b 100644 --- a/.github/workflows/notify-release.yml +++ b/.github/workflows/notify-release.yml @@ -9,9 +9,9 @@ jobs: checking-pending-prs: runs-on: ubuntu-latest steps: - - 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: lts/* - name: Install Dependencies diff --git a/.github/workflows/post-release.yml b/.github/workflows/post-release.yml index cce9151879..44748a065e 100644 --- a/.github/workflows/post-release.yml +++ b/.github/workflows/post-release.yml @@ -18,13 +18,13 @@ jobs: node-version: [lts/*] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # The script `publish-docs` below needs to perform a merge, so # it needs the full history to perform this merge. fetch-depth: 0 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - name: Install Dependencies diff --git a/.github/workflows/prep-release.yml b/.github/workflows/prep-release.yml index 3d077d71dd..155b2c2903 100644 --- a/.github/workflows/prep-release.yml +++ b/.github/workflows/prep-release.yml @@ -27,16 +27,16 @@ jobs: steps: # Check out caller repo - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 # check out agent repo to agent-repo for the bin folders - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: newrelic/node-newrelic path: agent-repo - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} # Only need to install deps in agent-repo because of the bin scripts diff --git a/.github/workflows/publish-branch.yml b/.github/workflows/publish-branch.yml index 8945e497a2..901f7dcac2 100644 --- a/.github/workflows/publish-branch.yml +++ b/.github/workflows/publish-branch.yml @@ -12,9 +12,9 @@ jobs: node-version: [lts/*] steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 # https://github.com/actions/setup-node + uses: actions/setup-node@v4 # https://github.com/actions/setup-node with: node-version: ${{ matrix.node-version }} registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/release-creation.yml b/.github/workflows/release-creation.yml index 1af584612e..2cf4d5fe6b 100644 --- a/.github/workflows/release-creation.yml +++ b/.github/workflows/release-creation.yml @@ -35,14 +35,14 @@ jobs: steps: # Check out caller repo - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 # check out agent repo to agent-repo for the bin folders - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: repository: newrelic/node-newrelic path: agent-repo - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} registry-url: 'https://registry.npmjs.org' diff --git a/.github/workflows/repolinter.yml b/.github/workflows/repolinter.yml index 6c41af75d2..eaa3e961ae 100644 --- a/.github/workflows/repolinter.yml +++ b/.github/workflows/repolinter.yml @@ -15,14 +15,14 @@ jobs: steps: - name: Test Default Branch id: default-branch - uses: actions/github-script@v6 + uses: actions/github-script@v7 with: script: | const data = await github.rest.repos.get(context.repo) return data.data && data.data.default_branch === context.ref.split('/').slice(-1)[0] - name: Checkout Self if: ${{ steps.default-branch.outputs.result == 'true' }} - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Run Repolinter if: ${{ steps.default-branch.outputs.result == 'true' }} uses: newrelic/repolinter-action@v1 diff --git a/.github/workflows/smoke-test-workflow.yml b/.github/workflows/smoke-test-workflow.yml index e2d9328e69..f47085fd7a 100644 --- a/.github/workflows/smoke-test-workflow.yml +++ b/.github/workflows/smoke-test-workflow.yml @@ -19,9 +19,9 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - - 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 }} - name: Install Dependencies diff --git a/.github/workflows/update-snyk-prs.yml b/.github/workflows/update-snyk-prs.yml index ea988c7586..a5df4544f6 100644 --- a/.github/workflows/update-snyk-prs.yml +++ b/.github/workflows/update-snyk-prs.yml @@ -13,9 +13,9 @@ jobs: runs-on: ubuntu-latest if: ${{ github.event.sender.login == 'snyk-bot' }} steps: - - 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/* - name: Install Dependencies diff --git a/.github/workflows/validate-pr.yml b/.github/workflows/validate-pr.yml index a37f7364f9..a044450100 100644 --- a/.github/workflows/validate-pr.yml +++ b/.github/workflows/validate-pr.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Pull Request Title is Conventional id: lint_pr_title - uses: amannn/action-semantic-pull-request@v5 + uses: amannn/action-semantic-pull-request@e32d7e603df1aa1ba07e981f2a23455dee596825 with: # Recommended Prefixes from https://github.com/conventional-changelog/commitlint/blob/master/%40commitlint/config-conventional/README.md#type-enum types: | @@ -37,7 +37,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - if: failure() name: Add PR comment if failed - uses: marocchino/sticky-pull-request-comment@v2 + uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 with: header: pr-title-lint-error message: | @@ -48,7 +48,7 @@ jobs: ``` - if: success() name: Remove PR comment if valid - uses: marocchino/sticky-pull-request-comment@v2 + uses: marocchino/sticky-pull-request-comment@331f8f5b4215f0445d3c07b4967662a32a2d3e31 with: header: pr-title-lint-error delete: true diff --git a/.github/workflows/versioned-coverage.yml b/.github/workflows/versioned-coverage.yml index f7569526fa..e93040e45a 100644 --- a/.github/workflows/versioned-coverage.yml +++ b/.github/workflows/versioned-coverage.yml @@ -21,9 +21,9 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - - 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 }} - name: Install Dependencies diff --git a/.github/workflows/versioned-security-agent.yml b/.github/workflows/versioned-security-agent.yml index 236a5043d5..33ecf2626f 100644 --- a/.github/workflows/versioned-security-agent.yml +++ b/.github/workflows/versioned-security-agent.yml @@ -66,9 +66,9 @@ jobs: node-version: [16.x, 18.x, 20.x] steps: - - 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 }} - name: Install Dependencies