-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
the block confidential script is not blocking the kubeconfig file #244
Comments
To block a certain file by extension, you may want to look at the https://github.com/github/platform-samples/blob/master/pre-receive-hooks/block_file_extensions.sh example, @vivuu1989. |
@stoe thanks , but we were looking for the possibility to block it through the same pre-receive hook which we are using for the block confidential. Because the user may store the file in different format and it may not identify.. |
@vivuu1989, you can add the required regex to the list in platform-samples/pre-receive-hooks/block_confidentials.sh Lines 20 to 29 in e9c2177
|
@stoe yes , thats correct. But we are confused about the regex value which can be added to the script to block the kubeconfig file. |
@vivuu1989, maybe try https://regexr.com to get to the regex you need? |
Hello experts,
We are using the platform samples the block confidential pre-receive script in our environment. It was working as expected.
but when we scanned the GitHub data , we could identify that the kubeconfig files are not getting blocked.
Could you please suggest us to add the best regex to find the kubeconfig file and block it through pre-receive script..
The text was updated successfully, but these errors were encountered: