@secretlint/secretlint-rule-openai
TypeScript icon, indicating that this package has built-in type declarations

9.0.0 • Public • Published

@secretlint/secretlint-rule-openai

A secretline rule for OpenAI.

Install

Install with npm:

npm install @secretlint/secretlint-rule-openai

MessageIDs

OPENAI_TOKEN

found OpenAI API Token: {{KEY}}

OpenAI API tokens should be private.

Options

Examples

{
    "rules": [
        {
            "id": "@secretlint/secretlint-rule-openai",
            // Ignore error related to IDs
            "allowMessageIds": ["OPENAI_TOKEN"],
            "options": {
                // allow list
                "allows": ["/IT_IS_PUBLIC/"]
            }
        }
    ]
}

Changelog

See Releases page.

Running tests

Install devDependencies and Run npm test:

npm test

Contributing

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-feature
  3. Commit your changes: git commit -am 'Add some feature'
  4. Push to the branch: git push origin my-new-feature
  5. Submit a pull request :D

Author

License

MIT © Natsuki Ikeguchi

Readme

Keywords

Package Sidebar

Install

npm i @secretlint/secretlint-rule-openai

Weekly Downloads

107

Version

9.0.0

License

MIT

Unpacked Size

8.94 kB

Total Files

8

Last publish

Collaborators

  • secretlint-bot
  • azu