Commit Watcher finds interesting and potentially hazardous commits in git projects. Watch your own projects to make sure you didn't accidentally leak your AWS keys or other credentials, and watch open-source projects you use to find undisclosed security vulnerabilities and patches.
This project contains a collection of rules you can use with Commit Watcher.
To submit a rule to this project, use this commit as an example: https://github.com/srcclr/commit-watcher/commit/3ae9e2d340f1ac4d10c9ebffae64c22b0a6ac706
Let's break down the rule a bit:
{
name: 'markdown_file',
rule_type_id: 1,
value: '(?i)\.(md|markdown)\z',
description: 'Markdown file'
}
There are four different values for the rule:
- name - unique name, valid characters are alpha numeric, '-', '_', and '.'
- rule_type_id - this is the ID for a rule type described above
- value - regular expression; this example could be read as "case insensitive, starts with a '.' and is followed either by 'md' or 'markdown' and then the end of the string"
- description - free text field for describing the rule
Any submissions made to the community rules will be Apache 2.0 licensed.