pan-semgrep
pan semgrep ci-setup <project> — open a PR adding a Semgrep GitHub Actions workflow
от eltmon★ 36 звёзд на GitHub
Установить pan-semgrep в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Semgrep CI Workflow
Overview
pan semgrep ci-setup <project> opens a pull request that adds .github/workflows/semgrep.yml
to the project's GitHub repository. It never pushes to the base branch and never touches the
project's checkout: it commits in a throwaway worktree and pushes the branch
overdeck/semgrep-ci.
It needs three things, and refuses with a one-line reason otherwise:
security.semgrep.enabled: truein~/.overdeck/config.yaml. Only the operator turns it on.- A single-repo project with
github_reposet. Polyrepo and GitLab projects are not supported. - An
originremote that is the project'sgithub_repo, not a fork.
Quick Command
# See the target repository, base branch, gate and the full workflow; changes nothing
pan semgrep ci-setup <project> --dry-run
# Open the pull request
pan semgrep ci-setup <project>
# Also scan base-branch pushes and upload results to GitHub code scanning
pan semgrep ci-setup <project> --sarif-upload
The command prints the pull request URL. If a pull request from overdeck/semgrep-ci is already
open, it prints that URL and changes nothing.
What the workflow does
- Runs
semgrep scanin the pinnedsemgrep/semgrepimage, with one--configpersecurity.semgrep.configsentry and thesecurity.semgrep.severitythreshold. - Scans pull requests diff-aware (
--baseline-commitat the merge base): only findings on code the pull request adds are reported. - Sends no metrics and needs no Semgrep account or token.
- Carries the gate mode in the job's
OVERDECK_SEMGREP_GATEline, read once fromverification.sastorsecurity.semgrep.gate:blocking: a pull request that adds a finding fails thesemgrepcheck, and the work agent gets the findings with fix and suppression instructions.advisory(also written foroff): the check never fails; findings show as warnings in the job log.
Changing the gate later
The workflow does not follow later config changes. Edit the OVERDECK_SEMGREP_GATE: line in
.github/workflows/semgrep.yml to blocking or advisory. Overdeck never rewrites the file;
delete it to stop CI scans, or delete it and run ci-setup again.
Troubleshooting
GitHub refused the push: the credential for origin lacks the "workflow" scope: pushing
files under .github/workflows/ needs that scope. Run gh auth refresh -s workflow (HTTPS
remotes) or push over SSH, then run the command again.
already has .github/workflows/semgrep.yml: the base branch has the workflow. ci-setup
never overwrites it; edit the file by hand.
Branch overdeck/semgrep-ci already exists on origin with no open pull request: a leftover
branch from an earlier run. Delete it on GitHub, or open a pull request from it.
Repository hooks did not run: expected. The generated commit and push use --no-verify
because the throwaway worktree has no installed dependencies. The pull request's CI and review
gate the one generated file.
Related Skills
semgrep— triage findings and suppress false positives with a justifiednosemgrep
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
- 01
Bash - 02
Read
FAQ
Что делает скилл pan-semgrep?
pan semgrep ci-setup <project> — open a PR adding a Semgrep GitHub Actions workflow
Как установить скилл pan-semgrep?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл pan-semgrep запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
ci-review
AnthropicThe scan that the plugin's GitHub Action runs.
azure-static-web-apps
GitHubHelps create, configure, and deploy Azure Static Web Apps using the SWA CLI. Use when deploying static sites to Azure, setting up SWA local development…
ai-ready
GitHubMake any repo AI-ready — analyzes your codebase and generates AGENTS.md, copilot-instructions.md, CI workflows, issue templates, and more. Mines your PR…
aws-cdk-python-setup
GitHubSetup and initialization guide for developing AWS CDK (Cloud Development Kit) applications in Python. This skill enables users to configure environment…