From d938c4f72185a9d8e993d50b6819a4de34e66a3f Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 29 Nov 2022 09:28:18 +0000 Subject: [PATCH 1/2] chore: update github workflow actions --- .github/workflows/docker.yml | 10 +++---- .github/workflows/examples.yml | 6 ++-- .github/workflows/gh-action-upgrade.yml | 2 +- .github/workflows/integration.yml | 28 +++++++++--------- .github/workflows/linting.yml | 4 +-- .github/workflows/lock.yml | 2 +- .github/workflows/pr-labels.yml | 4 +-- .github/workflows/pr-lint.yml | 2 +- .github/workflows/project-board.yml | 2 +- .github/workflows/provider-integration.yml | 18 ++++++------ .github/workflows/release.yml | 28 +++++++++--------- .github/workflows/release_next.yml | 20 ++++++------- .github/workflows/stale.yml | 2 +- .github/workflows/timechart.yml | 6 ++-- .github/workflows/unit.yml | 4 +-- .github/workflows/update-snapshots.yml | 34 +++++++++++----------- .github/workflows/website-release.yml | 2 +- .github/workflows/yarn-upgrade.yml | 12 ++++---- 18 files changed, 93 insertions(+), 93 deletions(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index dbb9d3c0dc..f06fc8ebd3 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -15,18 +15,18 @@ jobs: if: github.repository == 'hashicorp/terraform-cdk' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v1 + uses: docker/setup-buildx-action@v2.2.1 - name: Cache Docker layers - uses: actions/cache@v3 + uses: actions/cache@v3.0.11 with: path: /tmp/.buildx-cache key: ${{ runner.os }}-buildx-${{ hashFiles('/Dockerfile', '.terraform.versions.json') }} restore-keys: | ${{ runner.os }}-buildx- - name: Login to DockerHub - uses: docker/login-action@v1 + uses: docker/login-action@v2.1.0 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} @@ -37,7 +37,7 @@ jobs: echo "default=$DEFAULT_TERRAFORM_VERSION" >> $GITHUB_OUTPUT echo "available=$AVAILABLE_TERRAFORM_VERSIONS" >> $GITHUB_OUTPUT - name: Build and push - uses: docker/build-push-action@v2 + uses: docker/build-push-action@v3.2.0 with: pull: true push: true diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index ff15b2f50a..718e32e26a 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -18,7 +18,7 @@ jobs: examples: ${{ steps.set-examples.outputs.examples }} steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3.1.0 - id: set-examples run: | tfDefault=$(cat .terraform.versions.json | jq -r '.default') @@ -38,11 +38,11 @@ jobs: CHECKPOINT_DISABLE: "1" timeout-minutes: 60 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: Get yarn cache directory path id: global-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v3.0.11 id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.global-cache-dir-path.outputs.dir }} diff --git a/.github/workflows/gh-action-upgrade.yml b/.github/workflows/gh-action-upgrade.yml index 62b59136f0..f3833fbcb4 100644 --- a/.github/workflows/gh-action-upgrade.yml +++ b/.github/workflows/gh-action-upgrade.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v3.1.0 with: token: ${{ secrets.GH_TOKEN_ACTIONS_UPDATER }} diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index a4ef824f90..90f82356ac 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -28,11 +28,11 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: Get yarn cache directory path id: global-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v3.0.11 id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.global-cache-dir-path.outputs.dir }} @@ -54,13 +54,13 @@ jobs: TF_PLUGIN_CACHE_DIR: ${{ steps.global-cache-dir-path.outputs.dir }}/terraform-plugins GOCACHE: ${{ steps.global-cache-dir-path.outputs.dir }}/go-cache - name: Upload dist - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.1.1 if: ${{ !inputs.skip_setup }} with: name: dist path: dist - name: Upload edge-provider bindings - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.1.1 if: ${{ !inputs.skip_setup }} with: name: edge-provider-bindings @@ -86,11 +86,11 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: Get yarn cache directory path id: global-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 + - uses: actions/cache@v3.0.11 id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.global-cache-dir-path.outputs.dir }} @@ -98,12 +98,12 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: Download dist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist - name: Download edge-provider bindings - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: edge-provider-bindings path: test/edge-provider-bindings @@ -131,11 +131,11 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: Get yarn cache directory path id: global-cache-dir-path run: echo "::set-output name=dir::$(yarn cache dir)" - - uses: actions/cache@v3 + - uses: actions/cache@v3.0.11 id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.global-cache-dir-path.outputs.dir }} @@ -143,23 +143,23 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - name: HashiCorp - Setup Terraform - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v2.0.3 with: terraform_wrapper: false terraform_version: ${{ matrix.terraform }} - name: Install pipenv run: pip install pipenv - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3.3.1 with: go-version: 1.18.x - name: Download dist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist - name: Download edge-provider bindings - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: edge-provider-bindings path: test/edge-provider-bindings diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index c54f6f2cf2..8bbfea14eb 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -16,7 +16,7 @@ jobs: prettier: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: installing dependencies run: | yarn install @@ -27,7 +27,7 @@ jobs: lint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: installing dependencies run: | yarn install diff --git a/.github/workflows/lock.yml b/.github/workflows/lock.yml index 15e1f4b527..97c6067141 100644 --- a/.github/workflows/lock.yml +++ b/.github/workflows/lock.yml @@ -12,7 +12,7 @@ jobs: lock: runs-on: ubuntu-latest steps: - - uses: dessant/lock-threads@v3 + - uses: dessant/lock-threads@v3.0.0 with: issue-comment: > I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. diff --git a/.github/workflows/pr-labels.yml b/.github/workflows/pr-labels.yml index 0d3a71ae31..153d661921 100644 --- a/.github/workflows/pr-labels.yml +++ b/.github/workflows/pr-labels.yml @@ -8,7 +8,7 @@ jobs: pull-requests: write runs-on: ubuntu-latest steps: - - uses: actions/labeler@v4 + - uses: actions/labeler@v4.0.2 with: # The config file lives under .github/labeler.yml repo-token: "${{ secrets.PULL_REQUEST_LABELER }}" @@ -18,7 +18,7 @@ jobs: runs-on: ubuntu-latest name: Label the PR size steps: - - uses: codelytv/pr-size-labeler@v1 + - uses: codelytv/pr-size-labeler@v1.8.1 with: GITHUB_TOKEN: ${{ secrets.PULL_REQUEST_LABELER }} xs_label: "size/xs" diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index 0f734ca427..90d318ae3d 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -13,7 +13,7 @@ jobs: steps: # Please look up the latest version from # https://github.com/amannn/action-semantic-pull-request/releases - - uses: amannn/action-semantic-pull-request@v3.4.0 + - uses: amannn/action-semantic-pull-request@v5.0.2 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: diff --git a/.github/workflows/project-board.yml b/.github/workflows/project-board.yml index c731e5b13d..5f002002ae 100644 --- a/.github/workflows/project-board.yml +++ b/.github/workflows/project-board.yml @@ -14,7 +14,7 @@ jobs: if: github.repository == 'hashicorp/terraform-cdk' runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: Get project data env: GITHUB_TOKEN: ${{ secrets.PROJECT_BOARD_UPDATE_GH_TOKEN }} diff --git a/.github/workflows/provider-integration.yml b/.github/workflows/provider-integration.yml index bb40347a8c..9a76fd0ff1 100644 --- a/.github/workflows/provider-integration.yml +++ b/.github/workflows/provider-integration.yml @@ -24,11 +24,11 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: Get yarn cache directory path id: global-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v3.0.11 id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.global-cache-dir-path.outputs.dir }} @@ -50,7 +50,7 @@ jobs: TF_PLUGIN_CACHE_DIR: ${{ steps.global-cache-dir-path.outputs.dir }}/terraform-plugins GOCACHE: ${{ steps.global-cache-dir-path.outputs.dir }}/go-cache - name: Upload dist - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.1.1 with: name: dist path: dist @@ -72,9 +72,9 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: Download dist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist @@ -100,20 +100,20 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: HashiCorp - Setup Terraform - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v2.0.3 with: terraform_wrapper: false terraform_version: ${{ matrix.terraform }} - name: Install pipenv run: pip install pipenv - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3.3.1 with: go-version: 1.16.x - name: Download dist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index deeaf98227..11fb27f2a1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -30,7 +30,7 @@ jobs: env: CHECKPOINT_DISABLE: "1" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 with: fetch-depth: 0 # gives sentry access to all previous commits - name: version @@ -69,12 +69,12 @@ jobs: env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_TOKEN }} - name: Upload artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3.1.1 with: name: dist path: dist - name: Upload edge-provider bindings - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.1.1 if: ${{ !inputs.skip_setup }} with: name: edge-provider-bindings @@ -136,12 +136,12 @@ jobs: container: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: installing dependencies run: | yarn install - name: Download build artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3.0.1 with: name: dist - name: Release to github @@ -161,7 +161,7 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Download build artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3.0.1 with: name: dist - name: Release @@ -181,7 +181,7 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Download build artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3.0.1 with: name: dist - name: Release @@ -202,7 +202,7 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Download build artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist @@ -228,7 +228,7 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Download dist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist @@ -249,7 +249,7 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Download dist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist @@ -271,7 +271,7 @@ jobs: container: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: version id: get_version run: | @@ -298,14 +298,14 @@ jobs: runs-on: ubuntu-latest steps: # extract version number from package.json - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: version id: get_version run: | version=$(node -p "require('./package.json').version") echo "version=${version}" >> $GITHUB_OUTPUT # A PR will be sent to github.com/Homebrew/homebrew-core to update this formula: - - uses: mislav/bump-homebrew-formula-action@v1 + - uses: mislav/bump-homebrew-formula-action@v2.1 with: formula-name: cdktf download-url: https://registry.npmjs.org/cdktf-cli/-/cdktf-cli-${{ steps.get_version.outputs.version }}.tgz @@ -333,7 +333,7 @@ jobs: - unit_test steps: - name: Send failures to Slack - uses: slackapi/slack-github-action@v1.21.0 + uses: slackapi/slack-github-action@v1.23.0 with: payload: | { diff --git a/.github/workflows/release_next.yml b/.github/workflows/release_next.yml index 047854e205..01987987cd 100644 --- a/.github/workflows/release_next.yml +++ b/.github/workflows/release_next.yml @@ -23,7 +23,7 @@ jobs: env: CHECKPOINT_DISABLE: "1" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 with: fetch-depth: 0 # gives standard-version access to all previous commits - name: installing dependencies @@ -68,12 +68,12 @@ jobs: env: SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_TOKEN }} - name: Upload artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v3.1.1 with: name: dist path: dist - name: Upload edge-provider bindings - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.1.1 if: ${{ !inputs.skip_setup }} with: name: edge-provider-bindings @@ -135,7 +135,7 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Download build artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3.0.1 with: name: dist - name: Release @@ -155,7 +155,7 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Download build artifacts - uses: actions/download-artifact@v1 + uses: actions/download-artifact@v3.0.1 with: name: dist - name: Release @@ -175,7 +175,7 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Download dist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist @@ -200,7 +200,7 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Download dist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist @@ -220,7 +220,7 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Download dist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist @@ -242,7 +242,7 @@ jobs: container: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: version id: get_version run: | @@ -279,7 +279,7 @@ jobs: - unit_test steps: - name: Send failures to Slack - uses: slackapi/slack-github-action@v1.21.0 + uses: slackapi/slack-github-action@v1.23.0 with: payload: | { diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index 3f0a610d8a..60e871c912 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@v6 + - uses: actions/stale@v6.0.1 with: # For issues: post a "warning" message after 30 days, then close if another 30 days pass without a response. In another workflow, issues closed for 30 days will be locked. stale-issue-message: "Hi there! 👋 We haven't heard from you in 30 days and would like to know if the problem has been resolved or if you still need help. If we don't hear from you before then, I'll auto-close this issue in 30 days." diff --git a/.github/workflows/timechart.yml b/.github/workflows/timechart.yml index cb90e0d943..9c61593d3f 100644 --- a/.github/workflows/timechart.yml +++ b/.github/workflows/timechart.yml @@ -8,14 +8,14 @@ jobs: steps: - name: wait id: waitforstatuschecks - uses: "WyriHaximus/github-action-wait-for-status@v1.4.0" + uses: "WyriHaximus/github-action-wait-for-status@v1.7.1" with: ignoreActions: checkrun-timechart,update-snapshots-setup,update-snapshots-teardown,update-snapshots-linux,update-snapshots-windows,Vercel env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" - name: checkrun-timechart - uses: urcomputeringpal/checkrun-timechart-action@v0.0.5 + uses: urcomputeringpal/checkrun-timechart-action@v0.0.6 env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" with: @@ -28,7 +28,7 @@ jobs: # knows all the statuses (see https://github.com/WyriHaximus/github-action-wait-for-status#output), # we can leverage it to provide a global status to mergify. - name: "mergify status" - uses: actions/github-script@v3 + uses: actions/github-script@v6.3.3 if: steps.waitforstatuschecks.outputs.status != 'success' with: script: | diff --git a/.github/workflows/unit.yml b/.github/workflows/unit.yml index ec6179466d..e8db613e03 100644 --- a/.github/workflows/unit.yml +++ b/.github/workflows/unit.yml @@ -27,7 +27,7 @@ jobs: timeout-minutes: 60 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 - name: Get yarn cache directory path id: global-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT @@ -35,7 +35,7 @@ jobs: run: | mkdir -p ${{ steps.global-cache-dir-path.outputs.dir }}/terraform-plugins mkdir -p ${{ steps.global-cache-dir-path.outputs.dir }}/go-cache - - uses: actions/cache@v3 + - uses: actions/cache@v3.0.11 id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.global-cache-dir-path.outputs.dir }} diff --git a/.github/workflows/update-snapshots.yml b/.github/workflows/update-snapshots.yml index e450e8b915..de830e612b 100644 --- a/.github/workflows/update-snapshots.yml +++ b/.github/workflows/update-snapshots.yml @@ -18,23 +18,23 @@ jobs: outputs: terraformVersion: ${{ steps.tf-version.outputs.default }} steps: - - uses: actions-ecosystem/action-add-labels@v1 + - uses: actions-ecosystem/action-add-labels@v1.1.0 with: labels: ci/updating-snapshots - - uses: actions-ecosystem/action-remove-labels@v1 + - uses: actions-ecosystem/action-remove-labels@v1.3.0 with: labels: ci/update-snapshots - id: tf-version run: | DEFAULT_TERRAFORM_VERSION=$(cat .terraform.versions.json | jq -r '.default') echo "default=$DEFAULT_TERRAFORM_VERSION" >> $GITHUB_OUTPUT - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 with: ref: "refs/pull/${{ github.event.number }}/merge" - name: Get yarn cache directory path id: global-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v3.0.11 id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.global-cache-dir-path.outputs.dir }} @@ -47,12 +47,12 @@ jobs: yarn build yarn package - name: Upload dist # needed for running the integration tests on windows - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.1.1 with: name: dist path: dist - name: Upload edge-provider bindings # needed for running the integration tests on windows - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.1.1 with: name: edge-provider-bindings path: packages/@cdktf/provider-generator/edge-provider-bindings @@ -62,7 +62,7 @@ jobs: needs: update-snapshots-windows if: always() steps: - - uses: actions-ecosystem/action-remove-labels@v1 + - uses: actions-ecosystem/action-remove-labels@v1.3.0 with: labels: ci/updating-snapshots @@ -74,7 +74,7 @@ jobs: env: CHECKPOINT_DISABLE: "1" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 with: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} @@ -83,7 +83,7 @@ jobs: id: global-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v3.0.11 id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.global-cache-dir-path.outputs.dir }} @@ -132,7 +132,7 @@ jobs: - name: Push changes if: steps.self_mutation.outputs.self_mutation_happened - uses: ad-m/github-push-action@master + uses: ad-m/github-push-action@v0.6.0 with: github_token: ${{ secrets.TERRAFORM_CDK_PUSH_GITHUB_TOKEN }} branch: ${{ github.event.pull_request.head.ref }} @@ -150,21 +150,21 @@ jobs: env: CHECKPOINT_DISABLE: "1" steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 with: ref: ${{ github.event.pull_request.head.ref }} repository: ${{ github.event.pull_request.head.repo.full_name }} # windows env setup (we use a Docker image for Linux version above) - name: HashiCorp - Setup Terraform - uses: hashicorp/setup-terraform@v1 + uses: hashicorp/setup-terraform@v2.0.3 with: terraform_wrapper: false terraform_version: ${{ needs.update-snapshots-setup.outputs.terraformVersion }} - name: Install pipenv run: pip install pipenv - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@v3.3.1 with: go-version: 1.18.x @@ -172,7 +172,7 @@ jobs: id: global-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v3.0.11 id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.global-cache-dir-path.outputs.dir }} @@ -186,13 +186,13 @@ jobs: git config user.email github-team-tf-cdk@hashicorp.com - name: Download dist - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: dist path: dist - name: Download edge-provider bindings - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: edge-provider-bindings path: test/edge-provider-bindings @@ -222,7 +222,7 @@ jobs: - name: Push changes if: steps.self_mutation.outputs.self_mutation_happened - uses: ad-m/github-push-action@master + uses: ad-m/github-push-action@v0.6.0 with: github_token: ${{ secrets.TERRAFORM_CDK_PUSH_GITHUB_TOKEN }} branch: ${{ github.event.pull_request.head.ref }} diff --git a/.github/workflows/website-release.yml b/.github/workflows/website-release.yml index 3a6d2d2972..03dd4e4637 100644 --- a/.github/workflows/website-release.yml +++ b/.github/workflows/website-release.yml @@ -12,7 +12,7 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GH_TOKEN_WEBSITE_RELEASE }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3.1.0 with: repository: hashicorp/terraform-website token: ${{ secrets.GH_TOKEN_WEBSITE_RELEASE }} diff --git a/.github/workflows/yarn-upgrade.yml b/.github/workflows/yarn-upgrade.yml index abb54eba61..2a37b9d8e4 100644 --- a/.github/workflows/yarn-upgrade.yml +++ b/.github/workflows/yarn-upgrade.yml @@ -16,11 +16,11 @@ jobs: image: docker.mirror.hashicorp.services/hashicorp/jsii-terraform steps: - name: Check Out - uses: actions/checkout@v2 + uses: actions/checkout@v3.1.0 - name: Get yarn cache directory path id: global-cache-dir-path run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - uses: actions/cache@v3 + - uses: actions/cache@v3.0.11 id: global-cache # use this to check for `cache-hit` (`steps.global-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.global-cache-dir-path.outputs.dir }} @@ -66,7 +66,7 @@ jobs: git add . git diff --patch --staged > ./upgrade.patch - name: Upload Patch - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v3.1.1 with: name: upgrade.patch path: ./upgrade.patch @@ -77,10 +77,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Check Out - uses: actions/checkout@v2 + uses: actions/checkout@v3.1.0 - name: Download patch - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v3.0.1 with: name: upgrade.patch @@ -91,7 +91,7 @@ jobs: run: '[ -s ./upgrade.patch ] && rm ./upgrade.patch || echo "Empty patch. Skipping."' - name: Make Pull Request - uses: peter-evans/create-pull-request@v3 + uses: peter-evans/create-pull-request@v4.2.3 with: # Git commit details branch: automation/yarn-upgrade From df83e70456cb6966d534a073a094ab7badf252a4 Mon Sep 17 00:00:00 2001 From: Daniel Schmidt Date: Thu, 1 Dec 2022 12:25:43 +0100 Subject: [PATCH 2/2] chore: wrap if in expression --- .github/workflows/timechart.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/timechart.yml b/.github/workflows/timechart.yml index 9c61593d3f..3206b67a6a 100644 --- a/.github/workflows/timechart.yml +++ b/.github/workflows/timechart.yml @@ -29,7 +29,7 @@ jobs: # we can leverage it to provide a global status to mergify. - name: "mergify status" uses: actions/github-script@v6.3.3 - if: steps.waitforstatuschecks.outputs.status != 'success' + if: ${{ steps.waitforstatuschecks.outputs.status != 'success' }} with: script: | core.setFailed('One of the Github Actions workflows failed for this PR')