A secretlint rule for slack.
npm install @secretlint/secretlint-rule-slackA secretlint rule for slack.
Install with npm:
npm install @secretlint/secretlint-rule-slack
Via .secretlintrc.json(Recommended)
``json`
{
"rules": [
{
"id": "@secretlint/secretlint-rule-slack"
}
]
}
Disallow to write slack token as plain text.
You should encrypt it before using.
Disallow to write slack's Incoming Webhook URL in plain text.
You should encrypt it before using or inject via environment variables
> Keep it secret, keep it safe. Your webhook URL contains a secret. Don't share it online, including via public version control repositories. Slack actively searches out and revokes leaked secrets.
> -- https://api.slack.com/messaging/webhooks
- allows: string[]
- Allows a list of RegExp-like String
See Releases page.
Install devDependencies and Run npm test:
npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
1. Fork it!
2. Create your feature branch: git checkout -b my-new-featuregit commit -am 'Add some feature'
3. Commit your changes: git push origin my-new-feature`
4. Push to the branch:
5. Submit a pull request :D
MIT © azu