diff --git a/.github/actions/setup-environment/action.yml b/.github/actions/setup-environment/action.yml index d7903bd4f3..9cb6b55f0e 100644 --- a/.github/actions/setup-environment/action.yml +++ b/.github/actions/setup-environment/action.yml @@ -14,7 +14,7 @@ runs: steps: - name: Set up Javas - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: | @@ -33,7 +33,7 @@ runs: cat gradle.properties.gha >> gradle.properties - name: Setup Gradle - uses: gradle/gradle-build-action@v2 + uses: gradle/actions/setup-gradle@v3 with: cache-read-only: ${{ inputs.gradle-cache-read-only }} diff --git a/.github/workflows/Create-Custom-Jar.yml b/.github/workflows/Create-Custom-Jar.yml index 9e963bbd3e..7d2cd8eb4c 100644 --- a/.github/workflows/Create-Custom-Jar.yml +++ b/.github/workflows/Create-Custom-Jar.yml @@ -21,13 +21,13 @@ jobs: steps: - name: Checkout Java agent - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.agent-ref }} - name: Configure AWS Credentials if: ${{ env.AWS_KEY != '' }} - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -45,7 +45,7 @@ jobs: echo "This jar was built from the ref (branch/tag/hash): ${{ inputs.ref }}." >> $GITHUB_STEP_SUMMARY - name: Capture custom jar - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: custom-newrelic-jar path: | diff --git a/.github/workflows/GHA-Functional-Tests.yaml b/.github/workflows/GHA-Functional-Tests.yaml index 06a0afecc8..bb9a1d9486 100644 --- a/.github/workflows/GHA-Functional-Tests.yaml +++ b/.github/workflows/GHA-Functional-Tests.yaml @@ -31,13 +31,13 @@ jobs: java-version: [8, 11, 17, 21] steps: - name: Checkout Java agent - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.agent-ref || github.ref || 'main' }} - name: Configure AWS Credentials if: ${{ env.AWS_KEY != '' }} - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -69,7 +69,7 @@ jobs: - name: Capture build reports if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: functional-tests-results-java-${{ matrix.java-version }} # The regex for the path below will capture functional test HTML reports generated by gradle for all diff --git a/.github/workflows/GHA-Scala-Functional-Tests.yaml b/.github/workflows/GHA-Scala-Functional-Tests.yaml index 025fc653ef..5cba9be482 100644 --- a/.github/workflows/GHA-Scala-Functional-Tests.yaml +++ b/.github/workflows/GHA-Scala-Functional-Tests.yaml @@ -28,13 +28,13 @@ jobs: java-version: [8, 11] steps: - name: Checkout Java agent - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.agent-ref || github.ref || 'main' }} - name: Configure AWS Credentials if: ${{ env.AWS_KEY != '' }} - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -72,7 +72,7 @@ jobs: - name: Capture Jacoco reports if: matrix.java-version == '11' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: jacoco-reports-java-${{ matrix.java-version }} path: | @@ -81,7 +81,7 @@ jobs: # Capture HTML build result in artifacts - name: Capture build reports if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: functional-tests-results-java-${{ matrix.java-version }} # The regex for the path below will capture functional test HTML reports generated by gradle for all diff --git a/.github/workflows/GHA-Scala-Instrumentation-Tests.yaml b/.github/workflows/GHA-Scala-Instrumentation-Tests.yaml index 29c1335667..8f53123d7a 100644 --- a/.github/workflows/GHA-Scala-Instrumentation-Tests.yaml +++ b/.github/workflows/GHA-Scala-Instrumentation-Tests.yaml @@ -37,13 +37,13 @@ jobs: scala: 2.11 steps: - name: Checkout Java agent - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.agent-ref || github.ref || 'main' }} - name: Configure AWS Credentials if: ${{ env.AWS_KEY != '' }} - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/GHA-Spotbugs.yml b/.github/workflows/GHA-Spotbugs.yml index 05c00850fd..6bfaf67794 100644 --- a/.github/workflows/GHA-Spotbugs.yml +++ b/.github/workflows/GHA-Spotbugs.yml @@ -19,13 +19,13 @@ jobs: timeout-minutes: 15 runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ inputs.agent-ref || github.ref || 'main' }} - name: Configure AWS Credentials if: ${{ env.AWS_KEY != '' }} - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -40,37 +40,37 @@ jobs: - name: Execute Spotbugs run: ./gradlew $GRADLE_OPTIONS spotbugsMain - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: all-spotbugs-results path: '**/build/spotbugs/main.*' retention-days: 5 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: newrelic-agent-spotbugs-results path: 'newrelic-agent/build/spotbugs/main.*' retention-days: 5 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: newrelic-weaver-spotbugs-results path: 'newrelic-weaver/build/spotbugs/main.*' retention-days: 5 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: agent-bridge-spotbugs-results path: 'agent-bridge/build/spotbugs/main.*' retention-days: 5 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: agent-model-spotbugs-results path: 'agent-model/build/spotbugs/main.*' retention-days: 5 - - uses: actions/upload-artifact@v3 + - uses: actions/upload-artifact@v4 with: name: newrelic-api-spotbugs-results path: 'newrelic-api/build/spotbugs/main.*' @@ -85,7 +85,7 @@ jobs: steps: - name: Checkout GhPages branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'gh-pages' path: 'gh-pages' @@ -101,31 +101,31 @@ jobs: # Download reports - name: Download spotbugs reports 1 - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: newrelic-agent-spotbugs-results path: gh-pages/spotbugs/${{ env.BRANCH_NAME }}/newrelic-agent-spotbugs-results - name: Download spotbugs reports 2 - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: newrelic-weaver-spotbugs-results path: gh-pages/spotbugs/${{ env.BRANCH_NAME }}/newrelic-weaver-spotbugs-results - name: Download spotbugs reports 3 - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: agent-bridge-spotbugs-results path: gh-pages/spotbugs/${{ env.BRANCH_NAME }}/agent-bridge-spotbugs-results - name: Download spotbugs reports 4 - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: agent-model-spotbugs-results path: gh-pages/spotbugs/${{ env.BRANCH_NAME }}/agent-model-spotbugs-results - name: Download spotbugs reports 5 - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: newrelic-api-spotbugs-results path: gh-pages/spotbugs/${{ env.BRANCH_NAME }}/newrelic-api-spotbugs-results diff --git a/.github/workflows/GHA-Unit-Tests.yaml b/.github/workflows/GHA-Unit-Tests.yaml index 4572952bed..dff43b793d 100644 --- a/.github/workflows/GHA-Unit-Tests.yaml +++ b/.github/workflows/GHA-Unit-Tests.yaml @@ -28,13 +28,13 @@ jobs: java-version: [8, 11, 17, 21] steps: - name: Checkout Java agent - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.agent-ref || github.ref || 'main' }} - name: Configure AWS Credentials if: ${{ env.AWS_KEY != '' }} - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -63,7 +63,7 @@ jobs: - name: Upload coverage to Codecov if: matrix.java-version == '17' - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: '**/build/reports/jacoco/test/jacocoTestReport.xml' @@ -71,7 +71,7 @@ jobs: - name: Capture Jacoco reports if: matrix.java-version == '17' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: non-forked-jacoco-reports-java-${{ matrix.java-version }} path: | @@ -80,7 +80,7 @@ jobs: - name: Capture build reports (non forked) # If previous step fails, run this step regardless if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: non-forked-tests-results-java-${{ matrix.java-version }} # The regex for the path below will capture unit test HTML reports generated by gradle for all @@ -111,7 +111,7 @@ jobs: - name: Upload coverage to Codecov if: matrix.java-version == '17' - uses: codecov/codecov-action@v3 + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} files: '**/build/reports/jacoco/test/jacocoTestReport.xml' @@ -119,7 +119,7 @@ jobs: - name: Capture Jacoco reports if: matrix.java-version == '17' - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: forked-jacoco-reports-java-${{ matrix.java-version }} path: | @@ -127,7 +127,7 @@ jobs: - name: Capture build reports (forked) if: failure() - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: forked-tests-results-java-${{ matrix.java-version }} # The regex for the path below will capture unit test HTML reports generated by gradle for all @@ -139,7 +139,7 @@ jobs: - name: Checkout GhPages branch if: ${{ failure() }} - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'gh-pages' path: 'gh-pages' @@ -152,14 +152,14 @@ jobs: - name: Download test reports Java ${{ matrix.java-version }} if: ${{ failure() }} - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: unit-tests-results-java-${{ matrix.java-version }} path: gh-pages/reports/${{ inputs.agent-ref }}/${{ github.run_id }}/unit-tests-results-java-${{ matrix.java-version }} - name: Set up Python if: ${{ failure() }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 #This step executes a Python script that reads and writes html. #The script requires the beautifulsoup dependency, which parses html. @@ -187,7 +187,7 @@ jobs: steps: - name: Checkout GhPages branch - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'gh-pages' path: 'gh-pages' @@ -198,7 +198,7 @@ jobs: git config --global user.email "actions@users.noreply.github.com" - name: Set up Python - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 - name: Generate Index Pages run: | diff --git a/.github/workflows/GHPages-Cleanup.yml b/.github/workflows/GHPages-Cleanup.yml index 900d48353f..0042792c76 100644 --- a/.github/workflows/GHPages-Cleanup.yml +++ b/.github/workflows/GHPages-Cleanup.yml @@ -19,7 +19,7 @@ jobs: DAYS: ${{ inputs.days || '5' }} steps: - name: Checkout GH Pages - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'gh-pages' path: 'gh-pages' diff --git a/.github/workflows/Java-Instrumentation-Tests.yml b/.github/workflows/Java-Instrumentation-Tests.yml index 704fc1e82f..c751b0779c 100644 --- a/.github/workflows/Java-Instrumentation-Tests.yml +++ b/.github/workflows/Java-Instrumentation-Tests.yml @@ -30,13 +30,13 @@ jobs: AWS_KEY: ${{ secrets.aws-secret-access-key }} steps: - name: Checkout Java agent - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.agent-ref || github.ref || 'main' }} - name: Configure AWS Credentials if: ${{ env.AWS_KEY != '' }} - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -76,7 +76,7 @@ jobs: # Capture HTML build result in artifacts - name: Capture build reports if: ${{ failure() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: instrumentation-tests-results-java-${{ matrix.java-version }} path: | diff --git a/.github/workflows/Release-CopyToS3-prod.yml b/.github/workflows/Release-CopyToS3-prod.yml index 0ce332f89c..36075ab27b 100644 --- a/.github/workflows/Release-CopyToS3-prod.yml +++ b/.github/workflows/Release-CopyToS3-prod.yml @@ -14,11 +14,11 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout Self - uses: actions/checkout@v3 + uses: actions/checkout@v4 # This always checkouts main. So the script will be run from main. - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_DEFAULT }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_DEFAULT }} diff --git a/.github/workflows/Release-CopyToS3-staging.yml b/.github/workflows/Release-CopyToS3-staging.yml index e718b4b8aa..e1ea01af86 100644 --- a/.github/workflows/Release-CopyToS3-staging.yml +++ b/.github/workflows/Release-CopyToS3-staging.yml @@ -18,11 +18,11 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Checkout Self - uses: actions/checkout@v3 + uses: actions/checkout@v4 # This always checkouts main. So the script will be run from main. - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID_STAGING }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY_STAGING }} diff --git a/.github/workflows/Test-AITs.yml b/.github/workflows/Test-AITs.yml index 12c3b33b3a..7d6c1ca6cf 100644 --- a/.github/workflows/Test-AITs.yml +++ b/.github/workflows/Test-AITs.yml @@ -53,7 +53,7 @@ jobs: tests: ${{ steps.read-single-test.outputs.tests || steps.read-tests.outputs.tests }} steps: - name: Checkout AIT repo test - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: newrelic/java-agent-integration-tests ref: ${{ inputs.ait-ref || 'main' }} @@ -125,7 +125,7 @@ jobs: steps: - name: Retrieve agent from cache id: retrieve-agent - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /home/runner/work/newrelic-java-agent/newrelic-java-agent/newrelic-agent/build/newrelicJar/newrelic.jar key: agent-jar-${{ github.run_id }} @@ -133,7 +133,7 @@ jobs: ## Ongoing tests with artifactory dependencies - name: Checkout AIT repo test - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: newrelic/java-agent-integration-tests ref: ${{ inputs.ait-ref }} @@ -142,7 +142,7 @@ jobs: # Apps repos/caches - this process could be a candidate for custom action - name: Checkout Cache 1 - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: newrelic/java-ait-cache-1 ref: ${{ inputs.cache-ref || 'main' }} @@ -151,7 +151,7 @@ jobs: lfs: true - name: Checkout Cache 2 - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: newrelic/java-ait-cache-2 ref: ${{ inputs.cache-ref || 'main' }} @@ -160,7 +160,7 @@ jobs: lfs: true - name: Checkout Cache 3 - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: newrelic/java-ait-cache-3 ref: ${{ inputs.cache-ref || 'main' }} @@ -169,7 +169,7 @@ jobs: lfs: true - name: Checkout Cache 4 - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: newrelic/java-ait-cache-4 ref: ${{ inputs.cache-ref || 'main' }} @@ -195,7 +195,7 @@ jobs: # Install Zulu - name: Set up Zulu versions - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: | @@ -211,7 +211,7 @@ jobs: echo "JDK_zulu_21=${JAVA_HOME_21_X64}" >> $GITHUB_ENV - name: Set up Javas - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'temurin' java-version: | @@ -327,14 +327,14 @@ jobs: - name: Capture testing artifacts if: ${{ failure() || success() }} - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: ${{ github.workflow }}-${{ github.job }}-${{ env.MATRIX }} path: | agent-integration-tests/testing-artifacts/* - name: Upload negative value artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: path: ${{ github.workspace }}/negative_value_*.txt if-no-files-found: ignore @@ -344,11 +344,13 @@ jobs: runs-on: ubuntu-20.04 steps: - name: Download artifact(s) # surely there is a way to only download the negative_value_*.txt artifacts? - uses: actions/download-artifact@v3 #swap to v3 because v4 fails the step if no files are present + uses: actions/download-artifact@v4 + env: + continue-on-error: true - name: Send failure message to Slack if: ${{ hashFiles('**/negative_value_*.txt') != '' }} id: slack - uses: slackapi/slack-github-action@v1.23.0 + uses: slackapi/slack-github-action@v1.25.0 with: payload: | { diff --git a/.github/workflows/VerifyInstrumentation-Single.yml b/.github/workflows/VerifyInstrumentation-Single.yml index 7ce581a428..b2d6bce854 100644 --- a/.github/workflows/VerifyInstrumentation-Single.yml +++ b/.github/workflows/VerifyInstrumentation-Single.yml @@ -20,13 +20,13 @@ jobs: MODULE: ${{ github.event.inputs.module || inputs.module }} AWS_KEY: ${{ secrets.aws-secret-access-key }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ inputs.ref }} - name: Configure AWS Credentials if: ${{ env.AWS_KEY != '' }} - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.aws-access-key-id }} aws-secret-access-key: ${{ secrets.aws-secret-access-key }} diff --git a/.github/workflows/VerifyInstrumentation.yml b/.github/workflows/VerifyInstrumentation.yml index f23b7f27a3..3dbe31e45b 100644 --- a/.github/workflows/VerifyInstrumentation.yml +++ b/.github/workflows/VerifyInstrumentation.yml @@ -58,7 +58,7 @@ jobs: steps: - name: Send failure message to Slack id: slack - uses: slackapi/slack-github-action@v1.23.0 + uses: slackapi/slack-github-action@v1.25.0 with: payload: | { diff --git a/.github/workflows/X-Reusable-BuildAgent.yml b/.github/workflows/X-Reusable-BuildAgent.yml index d0551181d6..820822b3bf 100644 --- a/.github/workflows/X-Reusable-BuildAgent.yml +++ b/.github/workflows/X-Reusable-BuildAgent.yml @@ -22,13 +22,13 @@ jobs: AWS_KEY: ${{ secrets.AWS_ACCESS_KEY_ID }} steps: - name: Checkout Java agent - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ inputs.agent-ref }} - name: Configure AWS Credentials if: ${{ env.AWS_KEY != '' }} - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} @@ -43,7 +43,7 @@ jobs: run: ./gradlew $GRADLE_OPTIONS clean jar - name: Cache agent - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /home/runner/work/newrelic-java-agent/newrelic-java-agent/newrelic-agent/build/newrelicJar/newrelic.jar key: agent-jar-${{ github.run_id }} diff --git a/.github/workflows/X-Reusable-VerifyInstrumentation.yml b/.github/workflows/X-Reusable-VerifyInstrumentation.yml index 1fd0cbf8c3..421dd433d6 100644 --- a/.github/workflows/X-Reusable-VerifyInstrumentation.yml +++ b/.github/workflows/X-Reusable-VerifyInstrumentation.yml @@ -26,7 +26,7 @@ jobs: outputs: modules: ${{ steps.set-modules.outputs.modules }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ inputs.ref }} @@ -56,7 +56,7 @@ jobs: # GHA's IDE think the line below is broken. It is not. matrix: ${{ fromJson(needs.read-modules.outputs.modules) }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: ref: ${{ inputs.ref }} @@ -65,7 +65,7 @@ jobs: - name: Retrieve agent from cache id: retrieve-agent - uses: actions/cache@v3 + uses: actions/cache@v4 with: path: /home/runner/work/newrelic-java-agent/newrelic-java-agent/newrelic-agent/build/newrelicJar/newrelic.jar key: agent-jar-${{ github.run_id }} diff --git a/.github/workflows/publish_main_snapshot.yml b/.github/workflows/publish_main_snapshot.yml index 395b0ae4f0..3ac1921c97 100644 --- a/.github/workflows/publish_main_snapshot.yml +++ b/.github/workflows/publish_main_snapshot.yml @@ -8,10 +8,10 @@ jobs: publish_snapshot: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/publish_release.yml b/.github/workflows/publish_release.yml index 7015384ecd..a66ab70567 100644 --- a/.github/workflows/publish_release.yml +++ b/.github/workflows/publish_release.yml @@ -9,10 +9,10 @@ jobs: publish_release: runs-on: ubuntu-20.04 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1-node16 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} diff --git a/.github/workflows/repolinter.yml b/.github/workflows/repolinter.yml index 691aca4f83..8e753b44ef 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/snyk_scan.yml b/.github/workflows/snyk_scan.yml index 63744f7009..89ecd77a24 100644 --- a/.github/workflows/snyk_scan.yml +++ b/.github/workflows/snyk_scan.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Java Agent - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: 'main' @@ -25,9 +25,9 @@ jobs: echo "jdk17=/tmp" >> gradle.properties - name: Run Snyk to check for vulnerabilities - uses: snyk/actions/gradle@master + uses: snyk/actions/gradle-jdk11@master env: SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} with: command: monitor - args: --all-sub-projects --org=java-agent --debug --configuration-matching='(includeInJar)|(shadowIntoJar)' + args: --all-sub-projects --org=java-agent --configuration-matching='(includeInJar)|(shadowIntoJar)'