Skip to content

ci: Update GitHub Actions and pre-commit hook versions#195

Open
Nepomuceno wants to merge 1 commit into
masterfrom
ci/update-actions-and-precommit
Open

ci: Update GitHub Actions and pre-commit hook versions#195
Nepomuceno wants to merge 1 commit into
masterfrom
ci/update-actions-and-precommit

Conversation

@Nepomuceno

Copy link
Copy Markdown
Member

Summary

  • Update GitHub Actions workflow action versions and add generation verification
  • Update pre-commit hook versions to latest stable releases

Closes #189

Changes

GitHub Actions (.github/workflows/pr-validation.yaml)

  • actions/checkout@v2actions/checkout@v4
  • hashicorp/setup-terraform@v1hashicorp/setup-terraform@v3
  • Added actions/setup-go@v5 with Go 1.23
  • Added new step to verify generated files (main.tf, outputs.tf) are up-to-date by running go run main.go and checking for uncommitted changes

Pre-commit hooks (.pre-commit-config.yaml)

  • pre-commit-terraform from v1.74.1v1.104.0
  • pre-commit-hooks from v4.3.0v5.0.0

Why

  • Security updates from newer action versions
  • Ensures PRs don't forget to regenerate files after changing templates or resourceDefinition.json
  • Better developer experience with updated pre-commit tooling

- 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
Copilot AI review requested due to automatic review settings December 29, 2025 22:32
@Nepomuceno Nepomuceno added this to the 0.5 milestone Dec 29, 2025

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update CI/CD and pre-commit configurations

2 participants