actionshub / terraform-lint Goto Github PK
View Code? Open in Web Editor NEWRepository for the terraform-lint Github Action
Home Page: https://github.com/marketplace/actions/terraform-lint
License: Apache License 2.0
Repository for the terraform-lint Github Action
Home Page: https://github.com/marketplace/actions/terraform-lint
License: Apache License 2.0
The current release use the latest terraform version for lint check, we have a lot of code under 0.12 version , running fmt with 0.14 fail.
allow user choose terraform version to be checked
passing version as tag arg or create branchs for different terraform release eg tf12 , tf13, (tf14)
Thank for taking the time to fill this bug report fully. Without it we may not be able to fix the bug, and the issue may be closed without resolution.
terraform-lint does not capture error while running terraform fmt
2.0.1
Version of the Action where you are encountering the issue.
2.0.1
Your workflow configuration
Steps to reproduce the behavior:
set wrong syntax
variable "branchs" {
default = ["main"]
description "The repository branch used to publish the site's source files. (i.e. main or gh-pages"
}
Run action
3 . No failure
Failure
Add any other context about the problem here. e.g. related issues or existing pull requests.
Workaround
terraform fmt -check -recursive -diff
if [ $? -ne 0 ]; then
echo "Some terraform files need be formatted, run 'terraform fmt' to fix";
exit 1;
fi
entrypoint.sh file
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.