@secretlint/secretlint-rule-databricks
v12.3.1
Published
A secretlint rule for detecting Databricks personal access tokens
Readme
@secretlint/secretlint-rule-databricks
A rule for detecting Databricks personal access tokens in your code.
Install
Install with npm:
npm install @secretlint/secretlint-rule-databricksUsage
Via .secretlintrc.json(Recommended)
{
"rules": [
{
"id": "@secretlint/secretlint-rule-databricks"
}
]
}MessageIDs
DATABRICKS_PERSONAL_ACCESS_TOKEN
Databricks personal access token is detected.
Databricks personal access tokens start with the literal prefix dapi, followed by a 32-character hexadecimal string, with an optional -<digit> suffix. The rule matches hex characters case-insensitively.
NG examples:
DATABRICKS_TOKEN=dapi1234567890ABCDEF1234567890ABCDEF
token: "dapi0123456789ABCDEF0123456789ABCDEF-3"Options
allows: string[]- Allows a list of RegExp-like String
Changelog
See Releases page.
Running tests
Install devDependencies and Run npm test:
npm testContributing
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature - Commit your changes:
git commit -am 'Add some feature' - Push to the branch:
git push origin my-new-feature - Submit a pull request :D
License
MIT © azu
