ci-security-scanning-with-strix
하는 일
이 스킬은 Strix를 사용해 GitHub Actions, GitLab CI 또는 비슷한 파이프라인에 자동 보안 검사를 설정합니다. 병합 전에 모든 풀 리퀘스트를 점검하려는 팀을 위한 스킬입니다.
사용하는 경우
- ✓팀이 각 풀 리퀘스트를 병합 전에 보안 문제로 검사하려고 할 때.
- ✓확인된 취약점을 추가하는 병합을 CI 파이프라인이 막아야 할 때.
- ✓검사 결과를 풀 리퀘스트에 댓글로 남기고 싶을 때.
스킬 링크
https://github.com/usestrix/strix/blob/main/skills/ci-security-scanning-with-strix/SKILL.md복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.
사용 방법
가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
AI에게 요청하는 예시
“GitHub 저장소의 모든 풀 리퀘스트가 병합되기 전에 보안 검사를 받게 하고 싶습니다. 어떻게 설정하나요?”
매주 새 스킬 5개. 읽는 데 1분.
작동 방식
에이전트는 변경된 파일만 검사하고, 확인된 문제가 발견되면 빌드를 실패시키는 워크플로를 설정합니다. 결과는 풀 리퀘스트와 코드 스캐닝에 게시할 수 있습니다.
기술 내용 (원본 SKILL.md)
작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.
Set up Strix in CI/CD
You can gate PRs two ways — pick based on the environment, or combine them:
- Managed platform (recommended for most teams) — connect the GitHub/GitLab/Bitbucket app once and Strix reviews every PR with no workflow file, no runner, no Docker, and no LLM key. Results post as PR comments and land in the team dashboard. Best when you want zero CI maintenance, central tracking, or your runners lack Docker. See "Managed platform" below and the managed-pentesting-with-strix skill.
- Self-hosted OSS CLI in your runner — run a diff-scoped scan as a pipeline step. Fully in your infra, free (BYO LLM key), no external account. Requires Docker on the runner. Best for air-gapped/self-hosted CI or when you do not want scans leaving your environment.
Both fail the build on validated findings and both emit SARIF 2.1.0, so you can start with one and add the other later.
Option A — Self-hosted OSS CLI in the runner
Run a diff-scoped Strix scan on every PR: only changed files are tested, quick mode keeps it fast, and exit code 2 fails the build when validated vulnerabilities are found.
GitHub Actions
Create .github/workflows/security.yml:
name: Security Scan
on:
pull_request:
jobs:
strix-scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # required for diff-scope resolution
- name: Install Strix
run: curl -sSL https://strix.ai/install | bash
- name: Run Security Scan
env:
STRIX_LLM: ${{ secrets.STRIX_LLM }}
LLM_API_KEY: ${{ secrets.LLM_API_KEY }}
run: strix -n -t ./ --scan-mode quick --max-budget 10
# Don't fail open: a run that hits the hard budget stop exits 0 but leaves
# run.json status "stopped", not "completed". Enforce completion explicitly.
# This does not catch an agent that wrapped up early on a budget *warning*
# (it still calls finish_scan and records "completed"), so size the budget.
- name: Fail unless the scan completed
run: |
run_json=$(ls -t strix_runs/*/run.json | head -1)
status=$(jq -r .status "$run_json")
if [ "$status" != "completed" ]; then
echo "Strix run status is '$status' — the scan did not complete (likely budget exhausted). Raise --max-budget." >&2
exit 1
fi
Then tell the user to add two repository secrets: STRIX_LLM (model id, for example openrouter/z-ai/glm-5.3) and LLM_API_KEY (the provider key). Do not create these values yourself.
Notes:
- In CI/headless runs Strix automatically scopes to the PR's changed files (
--scope-mode auto). If diff resolution fails, keepfetch-depth: 0or set--diff-baseto the PR's actual base branch — useorigin/${{ github.base_ref }}in GitHub Actions rather than a hard-codedorigin/main, since repos use different default branches. - Exit codes:
0pass,2vulnerabilities found (fails the job),1setup error. Add--fail-on highto fail only on high/critical findings; lower ones are still reported, so a passing job is not a finding-free report. - The runner needs Docker (default GitHub-hosted Ubuntu runners have it).
- Size the budget so the scan completes — do not let it fail open. A
0exit means "no validated vulnerabilities in what was analyzed"; if--max-budgetis hit before the diff is fully covered, the scan wraps up early and can still exit0. The "Fail unless the scan completed" step above narrows the gap:strix_runs/<run>/run.jsonis"stopped"when the scan was cut off at the hard budget limit without a final report. It is not a complete guard — the agents get graduated wrap-up warnings before that limit, and a run that wraps up on a warning still callsfinish_scanand records"completed"with partial coverage. So keep that step in any pipeline that gates merges and give the scan real headroom (comparerun.json'sllm_usage.costagainst--max-budget; if it ran right up to the cap, raise it). For aquickdiff-scoped PR scan--max-budget 10is usually ample, raise it for large diffs.
Optional: upload findings to GitHub code scanning
Strix writes SARIF 2.1.0 to strix_runs/<run>/findings.sarif:
- name: Upload SARIF
if: always()
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: strix_runs
Other CI systems
Any pipeline works the same way
자주 묻는 질문
이걸 실행하려면 자체 서버가 필요한가요?
스킬은 두 가지 옵션을 설명합니다. 자신의 러너에서 실행하는 자체 호스팅 도구와, 러너 설정이 필요 없는 관리형 플랫폼입니다.
매번 저장소 전체를 검사하나요?
아닙니다. 자체 호스팅 옵션은 변경 범위 기반이라고 설명되며, 바뀐 파일만 테스트합니다.
결과는 어떤 형식으로 저장되나요?
스킬은 두 옵션 모두 SARIF 2.1.0 결과를 생성한다고 말합니다.
상세 정보
작성자의 원본 설명
Add security scanning to CI/CD with Strix — GitHub Actions, GitLab CI, or any pipeline — so every pull request gets a diff-scoped AI pentest that blocks vulnerable code before it merges, with results as PR comments and SARIF uploaded to code scanning. Covers both the self-hosted open-source CLI (runs in your runner) and the managed app.strix.ai platform (GitHub/GitLab app or API, no runner infra). Use when the user asks to add security scanning, SAST/DAST, pentesting, vulnerability checks, or automated security review to their CI pipeline, pre-merge gate, or PR workflow.
repo: usestrix/strix
인기도
- GitHub 스타
- 73k
- 순위
- #3097
- 라이선스
- Apache-2.0
- 업데이트
- 2026. 10. 30.
댓글
- …
이 저장소의 다른 스킬
api-security-testing
73k에이전트가 Strix로 REST, GraphQL, gRPC API의 보안을 테스트하는 방법을 보여 줍니다. OWASP API Top 10의 권한 결함 등 위험에 중점을 둡니다.
application-security-testing
73k에이전트가 제품 전체의 보안 테스트를 계획하도록 돕습니다. 각 부분에 맞는 테스트를 고르고 실행하며, 실제 위험에 따라 수정 사항의 순위를 매깁니다.
find-security-vulnerabilities-in-code
73k에이전트가 인젝션이나 깨진 접근 제어 같은 보안 결함을 코드에서 찾고, 테스트 공격으로 어떤 것이 실제인지 증명하도록 돕습니다.
fix-security-vulnerabilities-with-strix
73k에이전트가 확인된 보안 발견 사항을 겨냥한 코드 수정으로 바꾸고, 테스트를 다시 실행해 각 공격이 더 이상 작동하지 않는지 증명하도록 돕습니다.
비슷한 스킬
openclaw-update
394k에이전트가 설치 방식에 맞는 방법을 골라 기존 OpenClaw Gateway를 업데이트하고, 세션이 계속 작동하도록 돕습니다.
diagnose-gateway
394k에이전트가 설정, 채널, 포트를 확인해 OpenClaw Gateway가 왜 실패하는지 찾되, 아무것도 바꾸지 않도록 돕습니다.
crabbox-apps
394k에이전트가 임시 클라우드 머신에서 앱을 열고 실행한 뒤, 그 화면을 채팅의 측면 패널에 보여 주도록 돕습니다.