-
Notifications
You must be signed in to change notification settings - Fork 65
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
Usage in pre-commit checks that only flag for brand new resources #1621
Comments
As mentioned in the ticket, I may be able to implement but I'd like to understand if a change like this would be accepted. |
I believe this can be addressed using a combination of NagLoggers, Suppressions, and Conditional Suppression Ignores. Example ScenarioSecurity creates a new rule in their custom Given this, developers can either fix the violation immediately or temporarily suppress the error given that the suppression meets security's requirements. |
Interesting - seems like this would work. One of the concerns I'd like to find a software solution for is the date based checks are a little fragile and ideally, I could use a condition around whether or the resource in in a staged git commit. It might be good enough but it could be better. Any thoughts on that functionality? |
Conditions are open ended with their logic. You should be able to use any libararies/custom code you want to do the git based logic that you're looking for. However, here are a few "gotchas" that you may run into.
|
Interesting. Let me look upstream to see if that's resolvable. |
Description
I would like to be able to be able to run some command similar to the following:
and this will exit non-zero for if resources added or modified in the staged commit.
Use Case
Organizations often have old, legacy projects where a compliance uplift is difficult for all resources. Fixing everything is generally untenable upfront. However, net-new resources are often easy to nip at the bud with pre-commit checks.
Without this feature, our only options are to:
WARN
only but this almost always gets ignored.Proposed Solution
I don't have a great solution but I think we'd need a way to:
Other information
No response
Acknowledge
The text was updated successfully, but these errors were encountered: