-
-
Notifications
You must be signed in to change notification settings - Fork 541
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
fix: Revert "feat: add __GIT_WORKING_DIR__ to tfsec" #259
Conversation
This reverts commit 2973f85.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If the "crutch" doesn't break any existing functionality and doesn't remove an option to specify relative paths like (./dir/file
) along with a placeholder for absolute repo paths (like __GIT_WORKING_DIR__/dir/file
) I would vote for keeping this quirk in place (and moreover adding it to other alike hooks) at least for the sake of unifying stuff and to support interchangeability of approaches used in hooks for different tools. Just IMHO though.
I have plans to remove Well, I will create an issue for that |
I think that each thing should be done only in one standard way. The most common way to specify a relative path is using The latest crutch exist only in |
I see. Great. Going to approve #260 |
If .tfsec.json is at the top level of the git repo and you have differing structures of terraform, for example: AA/Terraform-here a relative tfsec.json file path fails with: So to have a team wide pre-commit configuration, the Am i missing a feature that would permit this for the whole team without paths specific to my machine? |
@gravitybacklight nope, you're right. |
Reverts #255
Remove useless crutch. It works fine without it