[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7B802GQ8EY2WF72F4R5B8RW":3,"skill-same:01M7B802GQ8EY2WF72F4R5B8RW":97},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":14,"licenseFileUrl":15,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":43,"commitSha":44,"skillDirectory":45,"forksCount":13,"repositoryHtmlUrl":46,"repositoryHomepageUrl":6,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":48,"install":49,"resources":62},"01M7B802GQ8EY2WF72F4R5B8RW","integrating-sast-into-github-actions-pipeline",null,"Integrates CodeQL and Semgrep SAST scanning into GitHub Actions, covering scans on pull requests\u002Fpushes, rule tuning to cut false positives, SARIF upload to GitHub Advanced Security, and merge-blocking quality gates for high-severity findings. Use when adding automated code vulnerability detection to CI, enforcing consistent SAST org-wide, or producing SOC 2\u002FPCI DSS\u002FNIST SSDF compliance evidence.","vikasvardhanv\u002Fjerry_skills","vikasvardhanv","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F99010657?v=4","01M7B2B0VN78W7529RQX5BR6DZ","01M7B2B0WDNTXJHRK3QNPNWRP6",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fintegrating-sast-into-github-actions-pipeline\u002FLICENSE","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fintegrating-sast-into-github-actions-pipeline\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: integrating-sast-into-github-actions-pipeline\ndescription: Integrates CodeQL and Semgrep SAST scanning into GitHub Actions, covering scans on pull requests\u002Fpushes, rule tuning to cut false positives, SARIF upload to GitHub Advanced Security, and merge-blocking quality gates for high-severity findings. Use when adding automated code vulnerability detection to CI, enforcing consistent SAST org-wide, or producing SOC 2\u002FPCI DSS\u002FNIST SSDF compliance evidence.\ndomain: cybersecurity\nsubdomain: devsecops\ntags:\n- devsecops\n- cicd\n- sast\n- codeql\n- semgrep\n- secure-sdlc\nversion: 1.0.0\nauthor: mahipal\nlicense: Apache-2.0\nnist_csf:\n- PR.PS-01\n- GV.SC-07\n- ID.IM-04\n- PR.PS-04\nmitre_attack:\n- T1195\n- T1554\n- T1059.004\n---\n\n# Integrating SAST into GitHub Actions Pipeline\n\n## When to Use\n\n- When development teams need automated code-level vulnerability detection on every pull request\n- When security teams require consistent SAST enforcement across all repositories in an organization\n- When migrating from manual or periodic security reviews to continuous security testing\n- When compliance frameworks (SOC 2, PCI DSS, NIST SSDF) require evidence of automated code analysis\n- When multiple languages coexist in a monorepo and need unified scanning under one workflow\n\n**Do not use** for runtime vulnerability detection (use DAST instead), for scanning third-party dependencies (use SCA tools like Snyk), or for infrastructure-as-code scanning (use Checkov or tfsec).\n\n## Prerequisites\n\n- GitHub repository with GitHub Actions enabled\n- GitHub Advanced Security license (required for CodeQL on private repos; free for public repos)\n- Semgrep account for managed rules and Semgrep App dashboard (free tier available)\n- Repository code in a supported language: Python, JavaScript\u002FTypeScript, Java, C\u002FC++, C#, Go, Ruby, Swift, Kotlin\n\n## Workflow\n\n### Step 1: Configure CodeQL Analysis Workflow\n\nCreate a CodeQL workflow that runs on pull requests and on a weekly schedule to catch vulnerabilities in existing code.\n\n```yaml\n# .github\u002Fworkflows\u002Fcodeql-analysis.yml\nname: \"CodeQL Analysis\"\n\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n  schedule:\n    - cron: '30 2 * * 1'  # Weekly Monday 2:30 AM\n\njobs:\n  analyze:\n    name: Analyze (${{ matrix.language }})\n    runs-on: ubuntu-latest\n    permissions:\n      actions: read\n      contents: read\n      security-events: write\n\n    strategy:\n      fail-fast: false\n      matrix:\n        language: ['javascript', 'python']\n\n    steps:\n      - name: Checkout repository\n        uses: actions\u002Fcheckout@v4\n\n      - name: Initialize CodeQL\n        uses: github\u002Fcodeql-action\u002Finit@v3\n        with:\n          languages: ${{ matrix.language }}\n          queries: security-extended,security-and-quality\n\n      - name: Autobuild\n        uses: github\u002Fcodeql-action\u002Fautobuild@v3\n\n      - name: Perform CodeQL Analysis\n        uses: github\u002Fcodeql-action\u002Fanalyze@v3\n        with:\n          category: \"\u002Flanguage:${{ matrix.language }}\"\n```\n\n### Step 2: Add Semgrep Scanning for Custom Rules\n\nSemgrep complements CodeQL with faster scans and support for custom pattern-based rules. Configure it to upload SARIF results to the same GitHub Security tab.\n\n```yaml\n# .github\u002Fworkflows\u002Fsemgrep.yml\nname: \"Semgrep SAST Scan\"\n\non:\n  pull_request:\n    branches: [main, develop]\n  push:\n    branches: [main]\n\njobs:\n  semgrep:\n    name: Semgrep Scan\n    runs-on: ubuntu-latest\n    permissions:\n      security-events: write\n      contents: read\n\n    container:\n      image: semgrep\u002Fsemgrep:latest\n\n    steps:\n      - name: Checkout\n        uses: actions\u002Fcheckout@v4\n\n      - name: Run Semgrep\n        run: |\n          semgrep ci \\\n            --config auto \\\n            --config p\u002Fowasp-top-ten \\\n            --config p\u002Fcwe-top-25 \\\n            --sarif --output semgrep-results.sarif \\\n            --severity ERROR \\\n            --error\n        env:\n          SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}\n\n      - name: Upload SARIF\n        if: always()\n        uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n        with:\n          sarif_file: semgrep-results.sarif\n          category: semgrep\n```\n\n### Step 3: Create Custom Semgrep Rules for Organization Patterns\n\nWrite organization-specific rules to catch patterns unique to your codebase, such as deprecated internal APIs or insecure configuration patterns.\n\n```yaml\n# .semgrep\u002Fcustom-rules.yml\nrules:\n  - id: hardcoded-database-url\n    patterns:\n      - pattern: |\n          $DB_URL = \"...$PROTO:\u002F\u002F...:...$PASS@...\"\n    message: |\n      Hardcoded database connection string with credentials detected.\n      Use environment variables or a secrets manager instead.\n    languages: [python, javascript, typescript]\n    severity: ERROR\n    metadata:\n      cwe: \"CWE-798: Use of Hard-coded Credentials\"\n      owasp: \"A07:2021 - Identification and Authentication Failures\"\n\n  - id: unsafe-deserialization\n    patterns:\n      - pattern-either:\n          - pattern: pickle.loads(...)\n          - pattern: yaml.load(..., Loader=yaml.Loader)\n          - pattern: yaml.load(..., Loader=yaml.FullLoader)\n    message: |\n      Unsafe deserialization detected. Use safe alternatives to prevent\n      remote code execution vulnerabilities.\n    languages: [python]\n    severity: ERROR\n    metadata:\n      cwe: \"CWE-502: Deserialization of Untrusted Data\"\n\n  - id: missing-csrf-protection\n    patterns:\n      - pattern: |\n          @app.route(\"...\", methods=[\"POST\"])\n          def $FUNC(...):\n              ...\n      - pattern-not-inside: |\n          @csrf.exempt\n          ...\n    message: \"POST endpoint may lack CSRF protection.\"\n    languages: [python]\n    severity: WARNING\n```\n\n### Step 4: Establish Quality Gates with Branch Protection\n\nConfigure branch protection rules that require SAST checks to pass before merging, preventing vulnerable code from reaching production branches.\n\n```bash\n# Use GitHub CLI to set branch protection requiring SAST checks\ngh api repos\u002F{owner}\u002F{repo}\u002Fbranches\u002Fmain\u002Fprotection \\\n  --method PUT \\\n  --field required_status_checks='{\"strict\":true,\"contexts\":[\"Analyze (javascript)\",\"Analyze (python)\",\"Semgrep Scan\"]}' \\\n  --field enforce_admins=true \\\n  --field required_pull_request_reviews='{\"required_approving_review_count\":1}'\n```\n\n### Step 5: Tune and Suppress False Positives\n\nManage false positives through CodeQL query filters and Semgrep nosemgrep annotations to maintain developer trust in scan results.\n\n```yaml\n# codeql-config.yml - Custom CodeQL configuration\nname: \"Custom CodeQL Config\"\nqueries:\n  - uses: security-extended\n  - uses: security-and-quality\n  - excludes:\n      id: js\u002Funused-local-variable\npaths-ignore:\n  - '**\u002Ftest\u002F**'\n  - '**\u002Ftests\u002F**'\n  - '**\u002Fvendor\u002F**'\n  - '**\u002Fnode_modules\u002F**'\n  - '**\u002F*.test.js'\n  - '**\u002F*.spec.py'\n```\n\n```python\n# Example: Suppressing a known false positive in Semgrep\nimport subprocess\n\ndef run_safe_command(cmd_list):\n    # nosemgrep: python.lang.security.audit.dangerous-subprocess-use\n    result = subprocess.run(cmd_list, capture_output=True, text=True, shell=False)\n    return result.stdout\n```\n\n### Step 6: Aggregate and Report Findings\n\nUse the GitHub Security Overview dashboard and configure notifications for security alerts across repositories.\n\n```bash\n# Query SARIF results via GitHub API for reporting\ngh api repos\u002F{owner}\u002F{repo}\u002Fcode-scanning\u002Falerts \\\n  --jq '.[] | select(.state==\"open\") | {rule: .rule.id, severity: .rule.security_severity_level, file: .most_recent_instance.location.path, line: .most_recent_instance.location.start_line}'\n\n# Count open alerts by severity\ngh api repos\u002F{owner}\u002F{repo}\u002Fcode-scanning\u002Falerts \\\n  --jq '[.[] | select(.state==\"open\")] | group_by(.rule.security_severity_level) | map({severity: .[0].rule.security_severity_level, count: length})'\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| SAST | Static Application Security Testing — analyzes source code without executing it to find security vulnerabilities |\n| SARIF | Static Analysis Results Interchange Format — standardized JSON format for expressing results from static analysis tools |\n| CodeQL | GitHub's semantic code analysis engine that treats code as data and queries it for vulnerability patterns |\n| Semgrep | Lightweight static analysis tool using pattern matching to find bugs and security issues across many languages |\n| Security Extended | CodeQL query suite that includes additional security queries beyond the default set for deeper analysis |\n| Quality Gate | Automated checkpoint that blocks code from progressing through the pipeline unless security criteria are met |\n| False Positive | A scan finding that incorrectly identifies secure code as vulnerable, requiring suppression or tuning |\n\n## Tools & Systems\n\n- **CodeQL**: GitHub's semantic code analysis engine with deep dataflow and taint tracking analysis\n- **Semgrep**: Fast, lightweight pattern-matching SAST tool with 3000+ community rules and custom rule support\n- **GitHub Advanced Security**: Platform providing code scanning, secret scanning, and dependency review in GitHub\n- **SARIF Viewer**: VS Code extension for reviewing SARIF results locally during development\n- **GitHub Security Overview**: Organization-level dashboard aggregating security alerts across all repositories\n\n## Common Scenarios\n\n### Scenario: Monorepo with Multiple Languages Needs Unified SAST\n\n**Context**: A platform team manages a monorepo containing Python microservices, TypeScript frontends, and Go infrastructure tools. Security reviews happen manually every quarter, missing vulnerabilities between reviews.\n\n**Approach**:\n1. Configure CodeQL with a matrix strategy covering Python, JavaScript, and Go languages\n2. Add Semgrep with `--config auto` to detect language automatically and apply relevant rulesets\n3. Create path-based triggers so only changed language directories trigger their respective scans\n4. Upload all SARIF results to GitHub Security tab with unique categories per tool and language\n5. Set branch protection requiring all SAST jobs to pass before merge\n6. Schedule weekly full-repository scans to catch issues in unchanged code from newly published CVE patterns\n\n**Pitfalls**: Setting CodeQL to analyze all languages on every PR increases CI time significantly. Use path filters to trigger only relevant language scans. Semgrep's `--config auto` may enable rules that conflict with CodeQL findings, creating duplicate alerts.\n\n### Scenario: Reducing Alert Fatigue from High False Positive Rate\n\n**Context**: After enabling SAST, developers ignore findings because 40% are false positives, undermining the security program.\n\n**Approach**:\n1. Export all current alerts and categorize them as true positive, false positive, or informational\n2. Create a custom CodeQL config excluding noisy query IDs that produce the most false positives\n3. Write `.semgrepignore` patterns for test files, generated code, and vendored dependencies\n4. Establish a weekly triage meeting where security and development leads review new rule additions\n5. Track false positive rate as a metric and target below 15% for developer trust\n\n**Pitfalls**: Over-suppressing rules to reduce noise can create blind spots. Always validate suppressions against the OWASP Top 10 and CWE Top 25 to ensure critical vulnerability classes remain covered.\n\n## Output Format\n\n```\nSAST Pipeline Scan Report\n==========================\nRepository: org\u002Fweb-application\nBranch: feature\u002Fuser-auth-refactor\nScan Date: 2026-02-23\nCommit: a1b2c3d4\n\nCodeQL Results:\n  Language    Queries Run   Findings   Critical   High   Medium\n  javascript  312           4          1          2      1\n  python      287           2          0          1      1\n\nSemgrep Results:\n  Ruleset          Rules Matched   Findings   Errors   Warnings\n  auto             1,847           3          1        2\n  owasp-top-ten    186             2          1        1\n  custom-rules     12              1          0        1\n\nQUALITY GATE: FAILED\n  Blocking findings: 2 Critical\u002FHigh severity issues\n  - [CRITICAL] CWE-89: SQL Injection in src\u002Fapi\u002Fusers.py:47\n  - [HIGH] CWE-79: Cross-site Scripting in src\u002Fcomponents\u002FSearch.tsx:123\n\nAction Required: Fix blocking findings before merge is permitted.\n```\n","# Integrating SAST into GitHub Actions Pipeline\n\n## When to Use\n\n- When development teams need automated code-level vulnerability detection on every pull request\n- When security teams require consistent SAST enforcement across all repositories in an organization\n- When migrating from manual or periodic security reviews to continuous security testing\n- When compliance frameworks (SOC 2, PCI DSS, NIST SSDF) require evidence of automated code analysis\n- When multiple languages coexist in a monorepo and need unified scanning under one workflow\n\n**Do not use** for runtime vulnerability detection (use DAST instead), for scanning third-party dependencies (use SCA tools like Snyk), or for infrastructure-as-code scanning (use Checkov or tfsec).\n\n## Prerequisites\n\n- GitHub repository with GitHub Actions enabled\n- GitHub Advanced Security license (required for CodeQL on private repos; free for public repos)\n- Semgrep account for managed rules and Semgrep App dashboard (free tier available)\n- Repository code in a supported language: Python, JavaScript\u002FTypeScript, Java, C\u002FC++, C#, Go, Ruby, Swift, Kotlin\n\n## Workflow\n\n### Step 1: Configure CodeQL Analysis Workflow\n\nCreate a CodeQL workflow that runs on pull requests and on a weekly schedule to catch vulnerabilities in existing code.\n\n```yaml\n# .github\u002Fworkflows\u002Fcodeql-analysis.yml\nname: \"CodeQL Analysis\"\n\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n  schedule:\n    - cron: '30 2 * * 1'  # Weekly Monday 2:30 AM\n\njobs:\n  analyze:\n    name: Analyze (${{ matrix.language }})\n    runs-on: ubuntu-latest\n    permissions:\n      actions: read\n      contents: read\n      security-events: write\n\n    strategy:\n      fail-fast: false\n      matrix:\n        language: ['javascript', 'python']\n\n    steps:\n      - name: Checkout repository\n        uses: actions\u002Fcheckout@v4\n\n      - name: Initialize CodeQL\n        uses: github\u002Fcodeql-action\u002Finit@v3\n        with:\n          languages: ${{ matrix.language }}\n          queries: security-extended,security-and-quality\n\n      - name: Autobuild\n        uses: github\u002Fcodeql-action\u002Fautobuild@v3\n\n      - name: Perform CodeQL Analysis\n        uses: github\u002Fcodeql-action\u002Fanalyze@v3\n        with:\n          category: \"\u002Flanguage:${{ matrix.language }}\"\n```\n\n### Step 2: Add Semgrep Scanning for Custom Rules\n\nSemgrep complements CodeQL with faster scans and support for custom pattern-based rules. Configure it to upload SARIF results to the same GitHub Security tab.\n\n```yaml\n# .github\u002Fworkflows\u002Fsemgrep.yml\nname: \"Semgrep SAST Scan\"\n\non:\n  pull_request:\n    branches: [main, develop]\n  push:\n    branches: [main]\n\njobs:\n  semgrep:\n    name: Semgrep Scan\n    runs-on: ubuntu-latest\n    permissions:\n      security-events: write\n      contents: read\n\n    container:\n      image: semgrep\u002Fsemgrep:latest\n\n    steps:\n      - name: Checkout\n        uses: actions\u002Fcheckout@v4\n\n      - name: Run Semgrep\n        run: |\n          semgrep ci \\\n            --config auto \\\n            --config p\u002Fowasp-top-ten \\\n            --config p\u002Fcwe-top-25 \\\n            --sarif --output semgrep-results.sarif \\\n            --severity ERROR \\\n            --error\n        env:\n          SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}\n\n      - name: Upload SARIF\n        if: always()\n        uses: github\u002Fcodeql-action\u002Fupload-sarif@v3\n        with:\n          sarif_file: semgrep-results.sarif\n          category: semgrep\n```\n\n### Step 3: Create Custom Semgrep Rules for Organization Patterns\n\nWrite organization-specific rules to catch patterns unique to your codebase, such as deprecated internal APIs or insecure configuration patterns.\n\n```yaml\n# .semgrep\u002Fcustom-rules.yml\nrules:\n  - id: hardcoded-database-url\n    patterns:\n      - pattern: |\n          $DB_URL = \"...$PROTO:\u002F\u002F...:...$PASS@...\"\n    message: |\n      Hardcoded database connection string with credentials detected.\n      Use environment variables or a secrets manager instead.\n    languages: [python, javascript, typescript]\n    severity: ERROR\n    metadata:\n      cwe: \"CWE-798: Use of Hard-coded Credentials\"\n      owasp: \"A07:2021 - Identification and Authentication Failures\"\n\n  - id: unsafe-deserialization\n    patterns:\n      - pattern-either:\n          - pattern: pickle.loads(...)\n          - pattern: yaml.load(..., Loader=yaml.Loader)\n          - pattern: yaml.load(..., Loader=yaml.FullLoader)\n    message: |\n      Unsafe deserialization detected. Use safe alternatives to prevent\n      remote code execution vulnerabilities.\n    languages: [python]\n    severity: ERROR\n    metadata:\n      cwe: \"CWE-502: Deserialization of Untrusted Data\"\n\n  - id: missing-csrf-protection\n    patterns:\n      - pattern: |\n          @app.route(\"...\", methods=[\"POST\"])\n          def $FUNC(...):\n              ...\n      - pattern-not-inside: |\n          @csrf.exempt\n          ...\n    message: \"POST endpoint may lack CSRF protection.\"\n    languages: [python]\n    severity: WARNING\n```\n\n### Step 4: Establish Quality Gates with Branch Protection\n\nConfigure branch protection rules that require SAST checks to pass before merging, preventing vulnerable code from reaching production branches.\n\n```bash\n# Use GitHub CLI to set branch protection requiring SAST checks\ngh api repos\u002F{owner}\u002F{repo}\u002Fbranches\u002Fmain\u002Fprotection \\\n  --method PUT \\\n  --field required_status_checks='{\"strict\":true,\"contexts\":[\"Analyze (javascript)\",\"Analyze (python)\",\"Semgrep Scan\"]}' \\\n  --field enforce_admins=true \\\n  --field required_pull_request_reviews='{\"required_approving_review_count\":1}'\n```\n\n### Step 5: Tune and Suppress False Positives\n\nManage false positives through CodeQL query filters and Semgrep nosemgrep annotations to maintain developer trust in scan results.\n\n```yaml\n# codeql-config.yml - Custom CodeQL configuration\nname: \"Custom CodeQL Config\"\nqueries:\n  - uses: security-extended\n  - uses: security-and-quality\n  - excludes:\n      id: js\u002Funused-local-variable\npaths-ignore:\n  - '**\u002Ftest\u002F**'\n  - '**\u002Ftests\u002F**'\n  - '**\u002Fvendor\u002F**'\n  - '**\u002Fnode_modules\u002F**'\n  - '**\u002F*.test.js'\n  - '**\u002F*.spec.py'\n```\n\n```python\n# Example: Suppressing a known false positive in Semgrep\nimport subprocess\n\ndef run_safe_command(cmd_list):\n    # nosemgrep: python.lang.security.audit.dangerous-subprocess-use\n    result = subprocess.run(cmd_list, capture_output=True, text=True, shell=False)\n    return result.stdout\n```\n\n### Step 6: Aggregate and Report Findings\n\nUse the GitHub Security Overview dashboard and configure notifications for security alerts across repositories.\n\n```bash\n# Query SARIF results via GitHub API for reporting\ngh api repos\u002F{owner}\u002F{repo}\u002Fcode-scanning\u002Falerts \\\n  --jq '.[] | select(.state==\"open\") | {rule: .rule.id, severity: .rule.security_severity_level, file: .most_recent_instance.location.path, line: .most_recent_instance.location.start_line}'\n\n# Count open alerts by severity\ngh api repos\u002F{owner}\u002F{repo}\u002Fcode-scanning\u002Falerts \\\n  --jq '[.[] | select(.state==\"open\")] | group_by(.rule.security_severity_level) | map({severity: .[0].rule.security_severity_level, count: length})'\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| SAST | Static Application Security Testing — analyzes source code without executing it to find security vulnerabilities |\n| SARIF | Static Analysis Results Interchange Format — standardized JSON format for expressing results from static analysis tools |\n| CodeQL | GitHub's semantic code analysis engine that treats code as data and queries it for vulnerability patterns |\n| Semgrep | Lightweight static analysis tool using pattern matching to find bugs and security issues across many languages |\n| Security Extended | CodeQL query suite that includes additional security queries beyond the default set for deeper analysis |\n| Quality Gate | Automated checkpoint that blocks code from progressing through the pipeline unless security criteria are met |\n| False Positive | A scan finding that incorrectly identifies secure code as vulnerable, requiring suppression or tuning |\n\n## Tools & Systems\n\n- **CodeQL**: GitHub's semantic code analysis engine with deep dataflow and taint tracking analysis\n- **Semgrep**: Fast, lightweight pattern-matching SAST tool with 3000+ community rules and custom rule support\n- **GitHub Advanced Security**: Platform providing code scanning, secret scanning, and dependency review in GitHub\n- **SARIF Viewer**: VS Code extension for reviewing SARIF results locally during development\n- **GitHub Security Overview**: Organization-level dashboard aggregating security alerts across all repositories\n\n## Common Scenarios\n\n### Scenario: Monorepo with Multiple Languages Needs Unified SAST\n\n**Context**: A platform team manages a monorepo containing Python microservices, TypeScript frontends, and Go infrastructure tools. Security reviews happen manually every quarter, missing vulnerabilities between reviews.\n\n**Approach**:\n1. Configure CodeQL with a matrix strategy covering Python, JavaScript, and Go languages\n2. Add Semgrep with `--config auto` to detect language automatically and apply relevant rulesets\n3. Create path-based triggers so only changed language directories trigger their respective scans\n4. Upload all SARIF results to GitHub Security tab with unique categories per tool and language\n5. Set branch protection requiring all SAST jobs to pass before merge\n6. Schedule weekly full-repository scans to catch issues in unchanged code from newly published CVE patterns\n\n**Pitfalls**: Setting CodeQL to analyze all languages on every PR increases CI time significantly. Use path filters to trigger only relevant language scans. Semgrep's `--config auto` may enable rules that conflict with CodeQL findings, creating duplicate alerts.\n\n### Scenario: Reducing Alert Fatigue from High False Positive Rate\n\n**Context**: After enabling SAST, developers ignore findings because 40% are false positives, undermining the security program.\n\n**Approach**:\n1. Export all current alerts and categorize them as true positive, false positive, or informational\n2. Create a custom CodeQL config excluding noisy query IDs that produce the most false positives\n3. Write `.semgrepignore` patterns for test files, generated code, and vendored dependencies\n4. Establish a weekly triage meeting where security and development leads review new rule additions\n5. Track false positive rate as a metric and target below 15% for developer trust\n\n**Pitfalls**: Over-suppressing rules to reduce noise can create blind spots. Always validate suppressions against the OWASP Top 10 and CWE Top 25 to ensure critical vulnerability classes remain covered.\n\n## Output Format\n\n```\nSAST Pipeline Scan Report\n==========================\nRepository: org\u002Fweb-application\nBranch: feature\u002Fuser-auth-refactor\nScan Date: 2026-02-23\nCommit: a1b2c3d4\n\nCodeQL Results:\n  Language    Queries Run   Findings   Critical   High   Medium\n  javascript  312           4          1          2      1\n  python      287           2          0          1      1\n\nSemgrep Results:\n  Ruleset          Rules Matched   Findings   Errors   Warnings\n  auto             1,847           3          1        2\n  owasp-top-ten    186             2          1        1\n  custom-rules     12              1          0        1\n\nQUALITY GATE: FAILED\n  Blocking findings: 2 Critical\u002FHigh severity issues\n  - [CRITICAL] CWE-89: SQL Injection in src\u002Fapi\u002Fusers.py:47\n  - [HIGH] CWE-79: Cross-site Scripting in src\u002Fcomponents\u002FSearch.tsx:123\n\nAction Required: Fix blocking findings before merge is permitted.\n```\n",{"name":5,"tags":24,"author":31,"domain":32,"license":14,"version":33,"nist_csf":34,"subdomain":25,"description":7,"mitre_attack":39},[25,26,27,28,29,30],"devsecops","cicd","sast","codeql","semgrep","secure-sdlc","mahipal","cybersecurity","1.0.0",[35,36,37,38],"PR.PS-01","GV.SC-07","ID.IM-04","PR.PS-04",[40,41,42],"T1195","T1554","T1059.004","main","1eb986d0b0ecc180291597e08eb5a58288843536","skills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fintegrating-sast-into-github-actions-pipeline","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv","2026-08-25 13:16:33",{"source":8,"skillName":5,"commands":50,"prompt":60,"zipAvailable":61},[51,54,57],{"tool":52,"command":53},"npx","npx skills add vikasvardhanv\u002Fjerry_skills --skill integrating-sast-into-github-actions-pipeline",{"tool":55,"command":56},"bunx","bunx skills add vikasvardhanv\u002Fjerry_skills --skill integrating-sast-into-github-actions-pipeline",{"tool":58,"command":59},"pnpm","pnpm dlx skills add vikasvardhanv\u002Fjerry_skills --skill integrating-sast-into-github-actions-pipeline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fintegrating-sast-into-github-actions-pipeline\u002FSKILL.md",true,[63,69,73,79,83,87,93],{"path":64,"resourceType":65,"resourceTypeDesc":66,"sizeBytes":67,"sourceHtmlUrl":68},"assets\u002Ftemplate.md","ASSET","资产文件",4780,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fintegrating-sast-into-github-actions-pipeline\u002Fassets\u002Ftemplate.md",{"path":70,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":15},"LICENSE","许可证",11255,{"path":74,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":77,"sourceHtmlUrl":78},"references\u002Fapi-reference.md","REFERENCE","参考文档",1460,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fintegrating-sast-into-github-actions-pipeline\u002Freferences\u002Fapi-reference.md",{"path":80,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":81,"sourceHtmlUrl":82},"references\u002Fstandards.md",2957,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fintegrating-sast-into-github-actions-pipeline\u002Freferences\u002Fstandards.md",{"path":84,"resourceType":75,"resourceTypeDesc":76,"sizeBytes":85,"sourceHtmlUrl":86},"references\u002Fworkflows.md",5299,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fintegrating-sast-into-github-actions-pipeline\u002Freferences\u002Fworkflows.md",{"path":88,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":91,"sourceHtmlUrl":92},"scripts\u002Fagent.py","SCRIPT","脚本",5855,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fintegrating-sast-into-github-actions-pipeline\u002Fscripts\u002Fagent.py",{"path":94,"resourceType":89,"resourceTypeDesc":90,"sizeBytes":95,"sourceHtmlUrl":96},"scripts\u002Fprocess.py",13730,"https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fcurated_premium_skills\u002FAnthropic-Cybersecurity-Skills\u002Fskills\u002Fintegrating-sast-into-github-actions-pipeline\u002Fscripts\u002Fprocess.py",[98,106,113,120,127,134],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":103,"categories":104,"keywords":105,"publishedAt":19},"01M7BESR1CJ3H5SP9XM8KYJZ9W","syllabus","Generates a curated supplementary reading list from any course syllabus using Consensus academic search. Grill-me intake (syllabus input format + course audience + year range) plus a grouping forcing-options checkpoint before any search runs — so the reading list matches the course's level and recency need. Parses the syllabus to extract topics and learning outcomes, searches Consensus for recent peer-reviewed papers per topic, and produces a professionally formatted .docx with clickable Consensus links, plain-language summaries calibrated to audience level, and Bloom-higher-order discussion questions tied to course learning goals. Use when the user uploads a syllabus, course outline, or curriculum document and wants supplementary readings (e.g., 'create a reading list from this syllabus', 'find recent papers for my course') — even casual mentions with a syllabus attached should trigger this skill.","MIT","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fsyllabus\u002Fskills\u002Fsyllabus\u002FSKILL.md",[],[],{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":19},"01M7BES1YA6R97W7QPMFFM1PED","pulse","Multi-source recency research skill that takes the pulse of any topic across Reddit, Hacker News, the open web, and optionally X\u002FTwitter within a configurable recent window (default 30 days). Forcing intake clarifies topic specificity, angle (trend\u002Fsentiment\u002Fproblems\u002Fopportunities\u002Fcomparison), time window, and platform scope before searching. Returns a synthesized briefing with citations, engagement metrics, and cross-platform pattern analysis. Use when the user requests multi-source recency intelligence on a topic (e.g., 'pulse on [topic]', 'what's happening with [topic]', 'what are people saying about [topic]', 'current conversation about [topic]', 'take the pulse of [topic]', 'trending: [topic]', 'find me info on [topic]'), and for competitor research, trend discovery, tool comparisons, and audience sentiment analysis.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpulse\u002Fskills\u002Fpulse\u002FSKILL.md",[],[],{"skillNo":114,"name":115,"nameZh":6,"description":116,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":117,"categories":118,"keywords":119,"publishedAt":19},"01M7BERNHYGY035AR00VRT03KE","patent","Patent prior-art and landscape intelligence skill — not generic patent help. Commits to one of five sub-use-cases via forcing intake (novelty search \u002F freedom-to-operate \u002F competitive landscape \u002F acquisition diligence \u002F litigation prior-art) before any search runs. Searches Google Patents, Espacenet, USPTO, and optionally Lens.org for citation-graph signals. Output is an editable Word document (.docx) with verdict, ranked closest art (claim-text extracted), CPC-class-aware landscape, family-resolved hits, geographic coverage, FTO flags where applicable, strategy recommendations, and full audit log. Use when the user asks for patent searching or analysis (e.g., 'prior art search for [invention]', 'freedom to operate analysis for [product]'). Produces search signal, not legal advice — always recommends consulting a patent attorney before filing or licensing decisions. Trademark, copyright, and trade-secret questions are out of scope.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fpatent\u002Fskills\u002Fpatent\u002FSKILL.md",[],[],{"skillNo":121,"name":122,"nameZh":6,"description":123,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":124,"categories":125,"keywords":126,"publishedAt":19},"01M7BERCK1EAKTWW7R436WAR0J","notebooklm","Browser automation skill for controlling Google's NotebookLM. Use when the user wants anything done in NotebookLM (e.g., 'open NotebookLM', 'check my [name] notebook', 'ask my notebook about X', 'add [source] to NotebookLM', 'generate a Video Overview from my notebook', 'use NotebookLM Studio'). Handles reading and querying notebooks, adding sources (URLs, text, files, YouTube links, synthesized content), generating Studio outputs (Audio\u002FVideo Overviews, Mind Maps, Reports incl. Briefing Doc\u002FStudy Guide\u002FFAQ, Flashcards, Quiz, slide decks, infographics — discover the exact set from the live Studio panel; the UI evolves fast), and creating new notebooks. Requires browser automation environment — fails gracefully when unavailable.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fnotebooklm\u002Fskills\u002Fnotebooklm\u002FSKILL.md",[],[],{"skillNo":128,"name":129,"nameZh":6,"description":130,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":131,"categories":132,"keywords":133,"publishedAt":19},"01M7BEQZAZAQRTXFJRY7RHV3TY","litreview","Academic literature orientation skill that searches papers via free keyless APIs (PubMed E-utilities + OpenAlex) by default — with the Consensus MCP as an optional enhancement lane when connected — builds a strategic search plan using PICO (default) or SPIDER \u002F Decomposition \u002F hybrid as fallbacks, and synthesizes findings into a formatted Word (.docx) research guide. Grill-me intake (research question specificity + framework hint + tentative depth) before the recon search; a second forcing checkpoint after Phase 2 confirms framework + sub-areas + depth before searches consume budget. Configurable depth (5\u002F10\u002F20 queries) controls coverage vs. speed. Output is a 'launching pad' — an orientation guide that lets a researcher dive in confidently, not a finished review. Use when the user starts literature-oriented research (e.g., 'litreview on [topic]', 'literature review on [topic]', 'I'm starting a literature review on X', 'I'm writing a paper on X', 'help me research X', 'I'm doing research on X', 'can you help me research X'). Do NOT use for single one-off paper searches wanting a quick list — that's a plain PubMed\u002FOpenAlex (or Consensus) query.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Flitreview\u002Fskills\u002Flitreview\u002FSKILL.md",[],[],{"skillNo":135,"name":136,"nameZh":6,"description":137,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":6,"repositoryNo":12,"starsCount":13,"licenseSpdxId":102,"licenseFileUrl":6,"sourceHtmlUrl":138,"categories":139,"keywords":140,"publishedAt":19},"01M7BEQKJ45K31QK5VRAQSVJCJ","grants","NIH grant research skill for clinical researchers. Grill-me intake (research idea + career stage + preliminary data + environment + submission posture + known institute targets) locks down the funding strategy before any search runs. Runs a 5-facet Consensus positioning analysis (with draft Significance\u002FInnovation language), maps the research to the right NIH institutes and study sections via RePORTER, finds NOSIs and funded overlap, and produces an editable Word document (.docx) with budget\u002Fscope-aware mechanism recommendations, submission timelines, and a mandatory program officer recommendation. Use when the user asks about research funding or makes any grant-related request (e.g., 'grants for [topic]', 'find grants for my research idea', 'what grants match my research', 'help me find NIH funding', 'grant opportunities for my research'). NIH-only scope — non-NIH funders (PCORI, DOD CDMRP, VA, foundations) are out of scope and flagged at intake.","https:\u002F\u002Fgithub.com\u002Fvikasvardhanv\u002Fjerry_skills\u002Fblob\u002Fmain\u002Fskills\u002Fresearch\u002Fgrants\u002Fskills\u002Fgrants\u002FSKILL.md",[],[]]