ci: Update GitHub Actions and pre-commit hook versions#195
Open
Nepomuceno wants to merge 1 commit into
Open
Conversation
- Update actions/checkout from v2 to v4 - Update hashicorp/setup-terraform from v1 to v3 - Add actions/setup-go@v5 with Go 1.23 - Add CI step to verify generated files are up-to-date - Update pre-commit-terraform from v1.74.1 to v1.104.0 - Update pre-commit-hooks from v4.3.0 to v5.0.0
There was a problem hiding this comment.
Pull request overview
This PR updates CI/CD tooling to use the latest stable versions and adds verification to ensure generated Terraform files stay in sync with their source templates.
- Updates GitHub Actions (checkout, setup-terraform, setup-go) to their latest major versions
- Updates pre-commit hooks to the latest stable releases (v1.104.0 for terraform hooks, v5.0.0 for standard hooks)
- Adds automated verification step to detect when generated files (main.tf, outputs.tf) are out of date
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
.pre-commit-config.yaml |
Updates pre-commit hook versions for terraform and standard hooks |
.github/workflows/pr-validation.yaml |
Updates GitHub Actions versions, adds Go 1.23 setup, and implements verification step for generated files |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #189
Changes
GitHub Actions (.github/workflows/pr-validation.yaml)
actions/checkout@v2→actions/checkout@v4hashicorp/setup-terraform@v1→hashicorp/setup-terraform@v3actions/setup-go@v5with Go 1.23main.tf,outputs.tf) are up-to-date by runninggo run main.goand checking for uncommitted changesPre-commit hooks (.pre-commit-config.yaml)
pre-commit-terraformfromv1.74.1→v1.104.0pre-commit-hooksfromv4.3.0→v5.0.0Why