Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI Failure: Terraform executable not found in GitHub Actions #276

Open
shebang42 opened this issue Feb 3, 2025 · 0 comments
Open

CI Failure: Terraform executable not found in GitHub Actions #276

shebang42 opened this issue Feb 3, 2025 · 0 comments

Comments

@shebang42
Copy link
Contributor

Description

The CI pipeline is failing due to Terraform not being found in the PATH on GitHub Actions runners. This is caused by recent changes to GitHub's Ubuntu runner images where certain packages, including Terraform, have been removed from the default image.

Error message:

Downloaded model: gen/models/Cisco-IOS-XR-um-if-ipv6-cfg.yang
main.go:41: running "terraform": exec: "terraform": executable file not found in $PATH

Root Cause

According to GitHub's changelog, they are migrating ubuntu-latest to Ubuntu 24.04 and have reduced the number of pre-installed packages to maintain their SLA for free disk space.

Proposed Solution

Add the official HashiCorp setup-terraform action to the workflow:

- name: Setup Terraform
  uses: hashicorp/setup-terraform@v2
  with:
    terraform_version: '1.5.0'  # or preferred version

Additional Context

  • This change affects all workflows running on the new Ubuntu 24.04 images
  • The migration of ubuntu-latest to Ubuntu 24.04 started on December 5, 2024
  • Similar issues might occur with other previously pre-installed tools

References

Software Differences

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

No branches or pull requests

1 participant