Comments (7)
@jevalenciap Which version of the action are you using?
git diff --staged
was used here in versions prior to v0.3
.
Please update it and let me know the result.
from action-format-hcl.
Thanks @ChristophShyper for your prompt response.
I am using V0.3
- name: Fail on malformatted files
uses: devops-infra/[email protected]
with:
list: true
It detects formatting issues correcly in the Vault HCL policies but then I got an error.
Adding a screenshot of the error that I am getting:
Not sure if the error is because tf and tfvars files are not found (since they are only applicable for Terraform but not for Vault)
from action-format-hcl.
@jevalenciap I found the issue. Due to how GitHub Actions are constructed the version needs to be always updated in the manifest file. Which I somehow missed for the last release. As a result, even if you had v0.3
in your workflow it still used the image with v0.2
.
This line needed to be updated https://github.com/devops-infra/action-format-hcl/pull/70/files#diff-1243c5424efaaa19bd8e813c5e6f6da46316e63761421b3e5f5c8ced9a36e6b6R38
I'll release v0.3.1
now which should work properly.
from action-format-hcl.
Thanks @ChristophShyper, I updated the GH action to the version 0.3.1
- name: Fail on malformatted files
uses: devops-infra/[email protected]
with:
list: true
But now I am getting a cache error once GH action runs.
from action-format-hcl.
Looks like git
even on Ubuntu acts different than on my host and in some cases (issue with .git
) it throws this error.
So from now I'll use find
instead of it, while maintaining similar functionality.
This change should do the trick https://github.com/devops-infra/action-format-hcl/pull/71/files#diff-6f9d41d046756f0ddc2fcee0626bdb50100d12b88f293734eff742818e03efa2R58
I'm releasing it with v0.3.3
version together with newest Terraform.
from action-format-hcl.
@ChristophShyper
Great!, I tested it, I am not getting the error anymore.
Thank you so much! I appreciate your diligence and fast response
from action-format-hcl.
I'm happy my work is of any help to others 😃
from action-format-hcl.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from action-format-hcl.