From f3030f87e0df770c8f89cb39570288c23a87e0e5 Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Thu, 14 Nov 2024 08:38:54 +0000 Subject: [PATCH] chore: update workflow actions versions (#2125) --- By submitting this pull request, I confirm that my contribution is made under the terms of the [Apache 2.0 license]. [Apache 2.0 license]: https://www.apache.org/licenses/LICENSE-2.0 --- .github/workflows/auto-tag-dev-v5.4.yml | 4 ++-- .github/workflows/auto-tag-dev-v5.5.yml | 4 ++-- .github/workflows/auto-tag-dev.yml | 4 ++-- .github/workflows/auto-tag-releases-v5.4.yml | 4 ++-- .github/workflows/auto-tag-releases-v5.5.yml | 4 ++-- .github/workflows/auto-tag-releases.yml | 4 ++-- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- projenrc/build-workflow.ts | 4 ++-- projenrc/common.ts | 2 +- projenrc/release.ts | 2 +- 11 files changed, 21 insertions(+), 21 deletions(-) diff --git a/.github/workflows/auto-tag-dev-v5.4.yml b/.github/workflows/auto-tag-dev-v5.4.yml index a046aaeb..330a44b4 100644 --- a/.github/workflows/auto-tag-dev-v5.4.yml +++ b/.github/workflows/auto-tag-dev-v5.4.yml @@ -16,7 +16,7 @@ jobs: sha: ${{ steps.git.outputs.sha }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: maintenance/v5.4 repository: ${{ github.repository }} @@ -39,7 +39,7 @@ jobs: permissions: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.pre-flight.outputs.sha }} repository: ${{ github.repository }} diff --git a/.github/workflows/auto-tag-dev-v5.5.yml b/.github/workflows/auto-tag-dev-v5.5.yml index fda8071e..b1eeb591 100644 --- a/.github/workflows/auto-tag-dev-v5.5.yml +++ b/.github/workflows/auto-tag-dev-v5.5.yml @@ -16,7 +16,7 @@ jobs: sha: ${{ steps.git.outputs.sha }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: maintenance/v5.5 repository: ${{ github.repository }} @@ -39,7 +39,7 @@ jobs: permissions: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.pre-flight.outputs.sha }} repository: ${{ github.repository }} diff --git a/.github/workflows/auto-tag-dev.yml b/.github/workflows/auto-tag-dev.yml index a0cb8c3a..3135214e 100644 --- a/.github/workflows/auto-tag-dev.yml +++ b/.github/workflows/auto-tag-dev.yml @@ -16,7 +16,7 @@ jobs: sha: ${{ steps.git.outputs.sha }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ github.repository }} - name: Setup Node.js @@ -38,7 +38,7 @@ jobs: permissions: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.pre-flight.outputs.sha }} repository: ${{ github.repository }} diff --git a/.github/workflows/auto-tag-releases-v5.4.yml b/.github/workflows/auto-tag-releases-v5.4.yml index e89392af..9e1f7092 100644 --- a/.github/workflows/auto-tag-releases-v5.4.yml +++ b/.github/workflows/auto-tag-releases-v5.4.yml @@ -16,7 +16,7 @@ jobs: sha: ${{ steps.git.outputs.sha }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: maintenance/v5.4 repository: ${{ github.repository }} @@ -39,7 +39,7 @@ jobs: permissions: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.pre-flight.outputs.sha }} repository: ${{ github.repository }} diff --git a/.github/workflows/auto-tag-releases-v5.5.yml b/.github/workflows/auto-tag-releases-v5.5.yml index 14c65d11..b8ea33ef 100644 --- a/.github/workflows/auto-tag-releases-v5.5.yml +++ b/.github/workflows/auto-tag-releases-v5.5.yml @@ -16,7 +16,7 @@ jobs: sha: ${{ steps.git.outputs.sha }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: maintenance/v5.5 repository: ${{ github.repository }} @@ -39,7 +39,7 @@ jobs: permissions: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.pre-flight.outputs.sha }} repository: ${{ github.repository }} diff --git a/.github/workflows/auto-tag-releases.yml b/.github/workflows/auto-tag-releases.yml index 5534f023..e2ca4252 100644 --- a/.github/workflows/auto-tag-releases.yml +++ b/.github/workflows/auto-tag-releases.yml @@ -16,7 +16,7 @@ jobs: sha: ${{ steps.git.outputs.sha }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: repository: ${{ github.repository }} - name: Setup Node.js @@ -38,7 +38,7 @@ jobs: permissions: {} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ needs.pre-flight.outputs.sha }} repository: ${{ github.repository }} diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2d663855..54ffef45 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,7 +20,7 @@ jobs: CI: "true" steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Setup Node.js uses: actions/setup-node@v4 with: @@ -78,7 +78,7 @@ jobs: if: always() && (github.event_name == 'pull_request') && needs.build.outputs.self-mutation-needed && (github.event.pull_request.head.repo.full_name == github.repository) steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 49015d22..a98871fd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -22,7 +22,7 @@ jobs: CI: "true" steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: ref: ${{ github.sha }} repository: ${{ github.repository }} @@ -42,7 +42,7 @@ jobs: run: yarn ts-node projenrc/publish-target.ts ${{ github.ref_name }} - name: Federate to AWS if: fromJSON(steps.publish-target.outputs.github-release) - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} @@ -134,7 +134,7 @@ jobs: node-version: "18" registry-url: https://registry.npmjs.org/ - name: Federate to AWS - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-region: us-east-1 role-to-assume: ${{ secrets.AWS_ROLE_TO_ASSUME }} diff --git a/projenrc/build-workflow.ts b/projenrc/build-workflow.ts index b01a9148..047cdeb4 100644 --- a/projenrc/build-workflow.ts +++ b/projenrc/build-workflow.ts @@ -55,7 +55,7 @@ export class BuildWorkflow { steps: [ { name: 'Checkout', - uses: 'actions/checkout@v3', + uses: 'actions/checkout@v4', }, { name: 'Setup Node.js', @@ -140,7 +140,7 @@ export class BuildWorkflow { steps: [ { name: 'Checkout', - uses: 'actions/checkout@v3', + uses: 'actions/checkout@v4', with: { ref: '${{ github.event.pull_request.head.ref }}', repository: '${{ github.event.pull_request.head.repo.full_name }}', diff --git a/projenrc/common.ts b/projenrc/common.ts index da0b0cb3..2f863250 100644 --- a/projenrc/common.ts +++ b/projenrc/common.ts @@ -2,7 +2,7 @@ import { github } from 'projen'; export const ACTIONS_CHECKOUT: github.workflows.JobStep = { name: 'Checkout', - uses: 'actions/checkout@v3', + uses: 'actions/checkout@v4', with: { ref: '${{ github.sha }}', repository: '${{ github.repository }}', diff --git a/projenrc/release.ts b/projenrc/release.ts index 50d0f573..2376e0c6 100644 --- a/projenrc/release.ts +++ b/projenrc/release.ts @@ -28,7 +28,7 @@ export class ReleaseWorkflow { const publishTarget = 'publish-target'; const federateToAwsStep: github.workflows.JobStep = { name: 'Federate to AWS', - uses: 'aws-actions/configure-aws-credentials@v1', + uses: 'aws-actions/configure-aws-credentials@v4', with: { 'aws-region': 'us-east-1', 'role-to-assume': '${{ secrets.AWS_ROLE_TO_ASSUME }}',