Skip to content

Commit

Permalink
ci: Pin the terraform lint runner
Browse files Browse the repository at this point in the history
Github are updating their default ubuntu-latest runner from
22.04 to 24.04: actions/runner-images#10636
The 24.04 image doesn't have terraform installed, so this breaks the
terraform linting. Pin this at the old version to fix this.

The other linting jobs pass on 24.04, so pin these at 24.04, so
we don't have a repeat of this in two years time (accidentally)

Signed-off-by: stevenhorsman <steven@uk.ibm.com>
  • Loading branch information
stevenhorsman committed Oct 16, 2024
1 parent c3d93fc commit 546679e
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ on:
jobs:
vet-and-fmt:
name: vet and fmt
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
Expand All @@ -41,7 +41,7 @@ jobs:
golangci-lint:
name: golangci-lint
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:

shellcheck:
name: shellcheck
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
permissions:
contents: read
steps:
Expand All @@ -84,7 +84,7 @@ jobs:

go-tidy:
name: go mod tidy
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout the pull request code
uses: actions/checkout@v4
Expand All @@ -102,7 +102,7 @@ jobs:

govulncheck:
name: govulncheck
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout the pull request code
uses: actions/checkout@v4
Expand All @@ -126,7 +126,7 @@ jobs:

packer:
name: Packer check
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- name: Checkout the pull request code
uses: actions/checkout@v4
Expand All @@ -135,7 +135,8 @@ jobs:

terraform:
name: Terraform check
runs-on: ubuntu-latest
# The 24.04 image doesn't have terraform installed, so stick with 22.04 here
runs-on: ubuntu-22.04
steps:
- name: Checkout the pull request code
uses: actions/checkout@v4
Expand Down

0 comments on commit 546679e

Please sign in to comment.