From 72c68e08df840703cb52ea6e3ea3704bd156d9a4 Mon Sep 17 00:00:00 2001 From: Vincent De Smet Date: Wed, 13 Sep 2023 12:57:37 +0700 Subject: [PATCH] chore: bump gh action versions | Package | From | To | | --- | --- | --- | | [actions/checkout](https://github.com/actions/checkout) | `2.4.0` | `4.0.0` | | [actions/cache](https://github.com/actions/cache) | `2` | `3` | | [aws-actions/configure-aws-credentials](https://github.com/aws-actions/configure-aws-credentials) | `1.6.1` | `4.0.0` | | [actions/setup-python](https://github.com/actions/setup-python) | `3` | `4` | | [mfinelli/setup-shfmt](https://github.com/mfinelli/setup-shfmt) | `1` | `2` | | [dorny/paths-filter](https://github.com/dorny/paths-filter) | `2.10.2` | `2.11.1` | | [terraform-linters/setup-tflint](https://github.com/terraform-linters/setup-tflint) | `2` | `3` | --- .../.github/workflows/fogg_ci.yml.tmpl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/templates/templates/.github/workflows/fogg_ci.yml.tmpl b/templates/templates/.github/workflows/fogg_ci.yml.tmpl index 78e0b65be..0dd8067c8 100644 --- a/templates/templates/.github/workflows/fogg_ci.yml.tmpl +++ b/templates/templates/.github/workflows/fogg_ci.yml.tmpl @@ -17,7 +17,7 @@ jobs: # required to push fixes back to repo contents: write{{ end }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.0.0 with: repository: {{`${{ github.event.pull_request.head.repo.full_name }}`}} ref: {{`${{ github.event.pull_request.head.ref }}`}} @@ -30,15 +30,15 @@ jobs: - run: make setup {{- if not (eq (len $githubActionsCI.DefaultAWSIAMRoleName) 0) }} - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v2 + uses: aws-actions/configure-aws-credentials@v4.0.0 with: role-to-assume: {{ $githubActionsCI.DefaultAWSIAMRoleName }} aws-region: {{ $githubActionsCI.DefaultAWSRegion }}{{ end }} - run: .fogg/bin/fogg apply env: FOGG_GITHUBTOKEN: {{`${{ secrets.GITHUB_TOKEN }}`}} - - uses: actions/setup-python@v3 - - uses: mfinelli/setup-shfmt@v1 + - uses: actions/setup-python@v4 + - uses: mfinelli/setup-shfmt@v2 with: shfmt-version: 3.5.1 - uses: rhythmictech/actions-setup-tfenv@v0.1.2 @@ -56,11 +56,11 @@ jobs: outputs: allChanges: {{`${{ steps.changedDirs.outputs.allChanges }}`}} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.0.0 with: repository: {{`${{ github.event.pull_request.head.repo.full_name }}`}} ref: {{`${{ github.event.pull_request.head.ref }}`}} - - uses: dorny/paths-filter@v2.10.2 + - uses: dorny/paths-filter@v2.11.1 id: filter with: initial-fetch-depth: '1' @@ -92,7 +92,7 @@ jobs: tfmodule: {{`${{ fromJson(needs.find-changed-dirs.outputs.allChanges) }}`}} if: {{`${{ needs.find-changed-dirs.outputs.allChanges != '[]' }}`}} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4.0.0 with: token: {{`${{ secrets.GITHUB_TOKEN }}`}} repository: {{`${{ github.event.pull_request.head.repo.full_name }}`}} @@ -118,12 +118,12 @@ jobs: add: -A message: | commit from fogg_ci -- ran terraform fmt and pushed - - uses: actions/cache@v2 + - uses: actions/cache@v3 name: Cache plugin dir with: path: ~/.tflint.d/plugins key: tflint-{{`${{ hashFiles('.tflint.hcl') }}`}} - - uses: terraform-linters/setup-tflint@v2 + - uses: terraform-linters/setup-tflint@v3 name: Setup TFLint with: tflint_version: v0.47.0