بنقرة واحدة
fortinet-settings
Configure Fortinet Code Security plugin settings (enable/disable scanning globally or per repo)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Configure Fortinet Code Security plugin settings (enable/disable scanning globally or per repo)
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
| name | fortinet:settings |
| description | Configure Fortinet Code Security plugin settings (enable/disable scanning globally or per repo) |
| user-invocable | true |
Manage plugin settings for the Fortinet Code Security plugin.
Settings are stored in ~/.lacework/plugins/code-security.json.
Structure (v2):
{
"hooks": {
"mode": "pre-commit",
"enabled": true,
"overrides": [
{
"path": "/absolute/path/to/repo",
"enabled": false
}
]
}
}
hooks.mode — "pre-commit" (default, scans before git commit) or "post-task" (scans after every Claude Code task)hooks.enabled — global kill switch for all scanninghooks.overrides — per-repo overrides, matched by path prefix (longest match wins)Older configs may use hooks.stop.enabled and hooks.stop.overrides. If hooks.mode is absent, treat as mode=post-task and use hooks.stop.* fields. When writing any change, migrate to v2 format.
When the user asks to disable or enable scanning without specifying scope, ask:
Would you like to disable/enable scanning globally (all repos) or just for this repo (
<current working directory>)?
If the user specifies scope directly, act without asking.
Show settings:
~/.lacework/plugins/code-security.jsonSwitch scanning mode:
stop.enabled → hooks.enabled, stop.overrides → hooks.overrides)hooks.mode to the new valueDisable/enable globally:
hooks.enabled to false or trueDisable/enable for a specific repo:
enabled valueoverrides arrayCreating the config file:
If ~/.lacework/plugins/code-security.json does not exist:
mkdir -p ~/.lacework/pluginsWhen determining if scanning is enabled for a directory:
hooks.enabled — if false, scanning is disabled globallypath (prefix match)enabled valuehooks.enabled valueAfter any change, show:
Fortinet Code Security Settings updated:
- Scanning mode: pre-commit / post-task
- Scanning (global): enabled/disabled
- This repo (<path>): enabled/disabled (via override / via global default)