[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7513PCJPDDSKFSMG0ED2SZG":3,"skill-same:01M7513PCJPDDSKFSMG0ED2SZG":72},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":16,"sourceHtmlUrl":17,"categories":18,"keywords":19,"publishedAt":20,"linkOnly":21,"markdownContent":22,"markdownBody":23,"frontMatter":24,"refName":36,"commitSha":37,"skillDirectory":5,"forksCount":14,"repositoryHtmlUrl":38,"repositoryHomepageUrl":6,"ownerHtmlUrl":39,"ownerBlogUrl":40,"ownerDescription":6,"updatedAt":41,"install":42,"resources":55},"01M7513PCJPDDSKFSMG0ED2SZG","implementing-devsecops-security-scanning",null,"Integrate security scanning into CI\u002FCD pipelines using tools like Semgrep, Trivy, and Gitleaks. Covers SAST, SCA, container scanning, and secret detection with structured JSON output for pipeline gates.","SamuelChien\u002Fmega-skills-collection","SamuelChien","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F4652114?v=4","01M74KK34WVHA0P5ZYSJRDDFMG","Samuel Chien","01M74KK35FQN1N9VZ9EPTH3P2S",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fimplementing-devsecops-security-scanning\u002FLICENSE","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fimplementing-devsecops-security-scanning\u002FSKILL.md",[],[],"2026-11-12 13:55:43",false,"---\nname: implementing-devsecops-security-scanning\ndescription: >\n  Integrate security scanning into CI\u002FCD pipelines using tools like Semgrep,\n  Trivy, and Gitleaks. Covers SAST, SCA, container scanning, and secret\n  detection with structured JSON output for pipeline gates.\ndomain: cybersecurity\nsubdomain: application-security\ntags: [devsecops, sast, sca, container-security, ci-cd]\nversion: \"1.0\"\nauthor: mahipal\nlicense: Apache-2.0\n---\n\n# Implementing DevSecOps Security Scanning\n\n## When to Use\n\n- Setting up automated security scanning in a new or existing CI\u002FCD pipeline\n- Shifting security left by catching vulnerabilities before production\n- Meeting compliance requirements (SOC 2, PCI-DSS, ISO 27001) mandating automated security testing\n- Integrating SAST, DAST, and SCA for comprehensive application security coverage\n- Establishing security gates that block deployments with critical\u002Fhigh vulnerabilities\n\n**Do not use** as a replacement for manual penetration testing. Automated scanning catches common patterns but cannot replace human-driven assessments for business logic flaws.\n\n## Prerequisites\n\n- CI\u002FCD platform: GitHub Actions, GitLab CI, Jenkins, or Azure DevOps\n- Container runtime (Docker) for running scanning tools\n- A staging environment URL for DAST scanning\n- Tool requirements: Semgrep (free), Trivy (free), OWASP ZAP (free), Gitleaks (free)\n\n## Workflow\n\n### Step 1: Add Secrets Detection with Gitleaks\n\n```yaml\n# .github\u002Fworkflows\u002Fsecurity.yml\nname: DevSecOps Security Pipeline\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n\njobs:\n  secrets-scan:\n    name: Secrets Detection (Gitleaks)\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n        with:\n          fetch-depth: 0\n      - name: Run Gitleaks\n        uses: gitleaks\u002Fgitleaks-action@v2\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### Step 2: Add SAST Scanning with Semgrep\n\n```yaml\n  sast-scan:\n    name: SAST (Semgrep)\n    runs-on: ubuntu-latest\n    container:\n      image: semgrep\u002Fsemgrep\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: Run Semgrep SAST scan\n        run: |\n          semgrep scan \\\n            --config p\u002Fsecurity-audit \\\n            --config p\u002Fowasp-top-ten \\\n            --severity ERROR \\\n            --error \\\n            --json --output semgrep-results.json .\n      - uses: actions\u002Fupload-artifact@v4\n        if: always()\n        with:\n          name: semgrep-results\n          path: semgrep-results.json\n```\n\n### Step 3: Add SCA and Container Scanning with Trivy\n\n```yaml\n  sca-scan:\n    name: SCA & Container Scan (Trivy)\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: Trivy filesystem scan (dependencies)\n        uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          scan-type: 'fs'\n          scan-ref: '.'\n          severity: 'CRITICAL,HIGH'\n          exit-code: '1'\n          format: 'json'\n          output: 'trivy-fs-results.json'\n      - name: Build and scan container image\n        run: |\n          docker build -t app:${{ github.sha }} .\n      - uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          image-ref: 'app:${{ github.sha }}'\n          severity: 'CRITICAL,HIGH'\n          exit-code: '1'\n```\n\n### Step 4: Add DAST Scanning with OWASP ZAP\n\n```yaml\n  dast-scan:\n    name: DAST (OWASP ZAP)\n    runs-on: ubuntu-latest\n    needs: [deploy-staging]\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: ZAP Baseline Scan\n        uses: zaproxy\u002Faction-baseline@v0.14.0\n        with:\n          target: ${{ vars.STAGING_URL }}\n          rules_file_name: '.zap\u002Frules.tsv'\n```\n\nConfigure `.zap\u002Frules.tsv` alert thresholds:\n\n```tsv\n40012\tFAIL\t(Cross Site Scripting - Reflected)\n40014\tFAIL\t(Cross Site Scripting - Persistent)\n40018\tFAIL\t(SQL Injection)\n90019\tFAIL\t(Server Side Code Injection)\n10038\tFAIL\t(Content Security Policy Header Not Set)\n```\n\n### Step 5: Enforce Security Gates\n\n```yaml\n  security-gate:\n    name: Security Gate\n    runs-on: ubuntu-latest\n    needs: [secrets-scan, sast-scan, sca-scan]\n    if: always()\n    steps:\n      - name: Check scan results\n        run: |\n          if [[ \"${{ needs.secrets-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: Secrets detected\"; exit 1\n          fi\n          if [[ \"${{ needs.sast-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: SAST critical\u002Fhigh findings\"; exit 1\n          fi\n          if [[ \"${{ needs.sca-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: Vulnerable dependencies\"; exit 1\n          fi\n          echo \"All security gates passed\"\n```\n\n### Step 6: Configure Pre-commit Hooks\n\n```yaml\n# .pre-commit-config.yaml\nrepos:\n  - repo: https:\u002F\u002Fgithub.com\u002Fgitleaks\u002Fgitleaks\n    rev: v8.22.1\n    hooks:\n      - id: gitleaks\n  - repo: https:\u002F\u002Fgithub.com\u002Fsemgrep\u002Fsemgrep\n    rev: v1.102.0\n    hooks:\n      - id: semgrep\n        args: ['--config', 'p\u002Fsecurity-audit', '--error']\n```\n\n```bash\npip install pre-commit\npre-commit install\npre-commit run --all-files\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **SAST** | Static Application Security Testing - analyzes source code without execution |\n| **DAST** | Dynamic Application Security Testing - tests running applications |\n| **SCA** | Software Composition Analysis - scans dependencies for known vulnerabilities |\n| **SBOM** | Software Bill of Materials - inventory of all components |\n| **Shift Left** | Moving security testing earlier in the SDLC |\n| **Security Gate** | CI\u002FCD checkpoint blocking deployment on scan failures |\n\n## Verification\n\n- [ ] Gitleaks blocks commits containing hardcoded secrets\n- [ ] Semgrep runs on every PR and reports findings\n- [ ] Trivy detects known-vulnerable dependencies\n- [ ] OWASP ZAP baseline scan runs against staging URL\n- [ ] Security gate blocks merges when critical\u002Fhigh findings exist\n- [ ] Branch protection rules enforce required status checks\n- [ ] Pre-commit hooks catch issues locally before push\n","# Implementing DevSecOps Security Scanning\n\n## When to Use\n\n- Setting up automated security scanning in a new or existing CI\u002FCD pipeline\n- Shifting security left by catching vulnerabilities before production\n- Meeting compliance requirements (SOC 2, PCI-DSS, ISO 27001) mandating automated security testing\n- Integrating SAST, DAST, and SCA for comprehensive application security coverage\n- Establishing security gates that block deployments with critical\u002Fhigh vulnerabilities\n\n**Do not use** as a replacement for manual penetration testing. Automated scanning catches common patterns but cannot replace human-driven assessments for business logic flaws.\n\n## Prerequisites\n\n- CI\u002FCD platform: GitHub Actions, GitLab CI, Jenkins, or Azure DevOps\n- Container runtime (Docker) for running scanning tools\n- A staging environment URL for DAST scanning\n- Tool requirements: Semgrep (free), Trivy (free), OWASP ZAP (free), Gitleaks (free)\n\n## Workflow\n\n### Step 1: Add Secrets Detection with Gitleaks\n\n```yaml\n# .github\u002Fworkflows\u002Fsecurity.yml\nname: DevSecOps Security Pipeline\non:\n  push:\n    branches: [main, develop]\n  pull_request:\n    branches: [main]\n\njobs:\n  secrets-scan:\n    name: Secrets Detection (Gitleaks)\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n        with:\n          fetch-depth: 0\n      - name: Run Gitleaks\n        uses: gitleaks\u002Fgitleaks-action@v2\n        env:\n          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}\n```\n\n### Step 2: Add SAST Scanning with Semgrep\n\n```yaml\n  sast-scan:\n    name: SAST (Semgrep)\n    runs-on: ubuntu-latest\n    container:\n      image: semgrep\u002Fsemgrep\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: Run Semgrep SAST scan\n        run: |\n          semgrep scan \\\n            --config p\u002Fsecurity-audit \\\n            --config p\u002Fowasp-top-ten \\\n            --severity ERROR \\\n            --error \\\n            --json --output semgrep-results.json .\n      - uses: actions\u002Fupload-artifact@v4\n        if: always()\n        with:\n          name: semgrep-results\n          path: semgrep-results.json\n```\n\n### Step 3: Add SCA and Container Scanning with Trivy\n\n```yaml\n  sca-scan:\n    name: SCA & Container Scan (Trivy)\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: Trivy filesystem scan (dependencies)\n        uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          scan-type: 'fs'\n          scan-ref: '.'\n          severity: 'CRITICAL,HIGH'\n          exit-code: '1'\n          format: 'json'\n          output: 'trivy-fs-results.json'\n      - name: Build and scan container image\n        run: |\n          docker build -t app:${{ github.sha }} .\n      - uses: aquasecurity\u002Ftrivy-action@0.28.0\n        with:\n          image-ref: 'app:${{ github.sha }}'\n          severity: 'CRITICAL,HIGH'\n          exit-code: '1'\n```\n\n### Step 4: Add DAST Scanning with OWASP ZAP\n\n```yaml\n  dast-scan:\n    name: DAST (OWASP ZAP)\n    runs-on: ubuntu-latest\n    needs: [deploy-staging]\n    steps:\n      - uses: actions\u002Fcheckout@v4\n      - name: ZAP Baseline Scan\n        uses: zaproxy\u002Faction-baseline@v0.14.0\n        with:\n          target: ${{ vars.STAGING_URL }}\n          rules_file_name: '.zap\u002Frules.tsv'\n```\n\nConfigure `.zap\u002Frules.tsv` alert thresholds:\n\n```tsv\n40012\tFAIL\t(Cross Site Scripting - Reflected)\n40014\tFAIL\t(Cross Site Scripting - Persistent)\n40018\tFAIL\t(SQL Injection)\n90019\tFAIL\t(Server Side Code Injection)\n10038\tFAIL\t(Content Security Policy Header Not Set)\n```\n\n### Step 5: Enforce Security Gates\n\n```yaml\n  security-gate:\n    name: Security Gate\n    runs-on: ubuntu-latest\n    needs: [secrets-scan, sast-scan, sca-scan]\n    if: always()\n    steps:\n      - name: Check scan results\n        run: |\n          if [[ \"${{ needs.secrets-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: Secrets detected\"; exit 1\n          fi\n          if [[ \"${{ needs.sast-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: SAST critical\u002Fhigh findings\"; exit 1\n          fi\n          if [[ \"${{ needs.sca-scan.result }}\" == \"failure\" ]]; then\n            echo \"BLOCKED: Vulnerable dependencies\"; exit 1\n          fi\n          echo \"All security gates passed\"\n```\n\n### Step 6: Configure Pre-commit Hooks\n\n```yaml\n# .pre-commit-config.yaml\nrepos:\n  - repo: https:\u002F\u002Fgithub.com\u002Fgitleaks\u002Fgitleaks\n    rev: v8.22.1\n    hooks:\n      - id: gitleaks\n  - repo: https:\u002F\u002Fgithub.com\u002Fsemgrep\u002Fsemgrep\n    rev: v1.102.0\n    hooks:\n      - id: semgrep\n        args: ['--config', 'p\u002Fsecurity-audit', '--error']\n```\n\n```bash\npip install pre-commit\npre-commit install\npre-commit run --all-files\n```\n\n## Key Concepts\n\n| Term | Definition |\n|------|------------|\n| **SAST** | Static Application Security Testing - analyzes source code without execution |\n| **DAST** | Dynamic Application Security Testing - tests running applications |\n| **SCA** | Software Composition Analysis - scans dependencies for known vulnerabilities |\n| **SBOM** | Software Bill of Materials - inventory of all components |\n| **Shift Left** | Moving security testing earlier in the SDLC |\n| **Security Gate** | CI\u002FCD checkpoint blocking deployment on scan failures |\n\n## Verification\n\n- [ ] Gitleaks blocks commits containing hardcoded secrets\n- [ ] Semgrep runs on every PR and reports findings\n- [ ] Trivy detects known-vulnerable dependencies\n- [ ] OWASP ZAP baseline scan runs against staging URL\n- [ ] Security gate blocks merges when critical\u002Fhigh findings exist\n- [ ] Branch protection rules enforce required status checks\n- [ ] Pre-commit hooks catch issues locally before push\n",{"name":5,"tags":25,"author":31,"domain":32,"license":15,"version":33,"subdomain":34,"description":35},[26,27,28,29,30],"devsecops","sast","sca","container-security","ci-cd","mahipal","cybersecurity","1.0","application-security","Integrate security scanning into CI\u002FCD pipelines using tools like Semgrep, Trivy, and Gitleaks. Covers SAST, SCA, container scanning, and secret detection with structured JSON output for pipeline gates.\n","main","c2b1fdccc779e99ac814e55fb69ca8d71215dd0f","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection","https:\u002F\u002Fgithub.com\u002FSamuelChien","http:\u002F\u002Fsamuelchien.com\u002F","2026-05-26 08:27:14",{"source":8,"skillName":5,"commands":43,"prompt":53,"zipAvailable":54},[44,47,50],{"tool":45,"command":46},"npx","npx skills add SamuelChien\u002Fmega-skills-collection --skill implementing-devsecops-security-scanning",{"tool":48,"command":49},"bunx","bunx skills add SamuelChien\u002Fmega-skills-collection --skill implementing-devsecops-security-scanning",{"tool":51,"command":52},"pnpm","pnpm dlx skills add SamuelChien\u002Fmega-skills-collection --skill implementing-devsecops-security-scanning","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fimplementing-devsecops-security-scanning\u002FSKILL.md",true,[56,60,66],{"path":57,"resourceType":57,"resourceTypeDesc":58,"sizeBytes":59,"sourceHtmlUrl":16},"LICENSE","许可证",11255,{"path":61,"resourceType":62,"resourceTypeDesc":63,"sizeBytes":64,"sourceHtmlUrl":65},"references\u002Fapi-reference.md","REFERENCE","参考文档",2039,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fimplementing-devsecops-security-scanning\u002Freferences\u002Fapi-reference.md",{"path":67,"resourceType":68,"resourceTypeDesc":69,"sizeBytes":70,"sourceHtmlUrl":71},"scripts\u002Fagent.py","SCRIPT","脚本",6930,"https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fimplementing-devsecops-security-scanning\u002Fscripts\u002Fagent.py",[73,81,88,95,102,109],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":20},"01M76R4WZQZAXGGXMQCA0FZ716","zustand-store-ts","Create Zustand stores with TypeScript, subscribeWithSelector middleware, and proper state\u002Faction separation. Use when building React state management, creating global stores, or implementing reactive state patterns with Zustand.","MIT","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-ts\u002FSKILL.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":20},"01M76R4T9KENDH7FENGZQHBW4G","zustand-store-creator","Zustand Store Creator - Auto-activating skill for Frontend Development.\nTriggers on: zustand store creator, zustand store creator\nPart of the Frontend Development skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzustand-store-creator\u002FSKILL.md",[],[],{"skillNo":89,"name":90,"nameZh":6,"description":91,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":92,"categories":93,"keywords":94,"publishedAt":20},"01M76R3YWN84B7SANJ52X799ZE","zero-trust-config-helper","Zero Trust Config Helper - Auto-activating skill for Security Advanced.\nTriggers on: zero trust config helper, zero trust config helper\nPart of the Security Advanced skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzero-trust-config-helper\u002FSKILL.md",[],[],{"skillNo":96,"name":97,"nameZh":6,"description":98,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":99,"categories":100,"keywords":101,"publishedAt":20},"01M76R3HNSV2AEYSKHM915GJ58","zapier-integration-helper","Zapier Integration Helper - Auto-activating skill for Business Automation.\nTriggers on: zapier integration helper, zapier integration helper\nPart of the Business Automation skill category.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzapier-integration-helper\u002FSKILL.md",[],[],{"skillNo":103,"name":104,"nameZh":6,"description":105,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":106,"categories":107,"keywords":108,"publishedAt":20},"01M76R3DJSKAT4FA7DV4BF3GCE","zai-cli","Execute z.AI CLI providing vision, search, reader, and GitHub exploration via CLI and MCP.\nUse when user needs image\u002Fvideo analysis, OCR, UI-to-code conversion, error diagnosis,\nreal-time web search, web page to markdown extraction, or GitHub code exploration.\nTrigger with phrases like \"analyze this image\", \"search the web for\", \"read this page\",\n\"explore this repo\", or \"use zai\". Requires Z_AI_API_KEY.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fzai-cli\u002FSKILL.md",[],[],{"skillNo":110,"name":111,"nameZh":6,"description":112,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":77,"licenseFileUrl":6,"sourceHtmlUrl":113,"categories":114,"keywords":115,"publishedAt":20},"01M76R2KAM699XE9AJVAWE4H2E","yt-research","Research competitor YouTube channels, niches, and trending topics for your content strategy.\nUse this skill whenever the user says \"research channels\", \"analyze competitors\", \"find trending topics\",\n\"niche analysis\", \"competitive research\", \"what are other creators doing\", \"scrape YouTube channels\",\nor wants to understand the competitive landscape for a specific tool or topic area. Use when working with yt research. Trigger with 'yt', 'research'.","https:\u002F\u002Fgithub.com\u002FSamuelChien\u002Fmega-skills-collection\u002Fblob\u002Fmain\u002Fyt-research\u002FSKILL.md",[],[]]