Comments (5)
@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
from platform-samples.
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.
from platform-samples.
@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..
Hence we are looking for some regex same like which we used for finding RSA token or etc..
from platform-samples.
@stoe yes , thats correct. But we are confused about the regex value which can be added to the script to block the kubeconfig file.
from platform-samples.
@vivuu1989, maybe try https://regexr.com to get to the regex you need?
from platform-samples.
Related Issues (20)
- find nameId of specific user with a given loginid in org HOT 3
- Kiแปm tra
- https://app.getquin.com/activity/RHbBFALkSf?lang=en&utm_source=sharing HOT 1
- [email protected]
- hello-world. HOT 3
- 311.401.298-13
- 311.401.298-13 HOT 2
- pre-receive hook script require-jira-issue.sh is not working as expected HOT 1
- Error
- Github token, missing list of permissions HOT 2
- FreeVario
- Code Tabs Overlapping Add File Tabs when Adding a File to a Repository HOT 1
- Git
- Taahoyare
- Gay masturbieren ๐ ๐
- G
- Platform_samples
- Notifications HOT 2
- Sample1#
- GitHub Platform Sample
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 platform-samples.