Skip to content
Back to skills

Devsecops

ASecurity

Use this skill when the user says 'DevSecOps', 'shift-left security', 'SAST in CI', 'DAST pipeline', 'secret scanning in CI', 'security gate', 'pipeline hardening'. Embeds automated SAST, DAST, dependency and secret scanning into CI/CD with policy gates. Do NOT use for: deep SAST/DAST tool configuration (use security/sast-dast), secrets storage/rotation (use security/secrets-management), or SBOM generation (use security/sbom).

  • 46 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added November 27, 2026
ai-agentstestinggitci/cdsecurity

Security analysis

A96/100
  • mediumInstalls packages at runtime which could introduce malicious dependencies

Pro shows the line behind each finding and how to fix it

Scanned November 27, 2026

npx -y skills add j4flmao/agent-skills --skill devsecops --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Devsecops?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Devsecops
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/j4flmao-devsecops/badge)](https://www.skillsdirectory.com/skills/j4flmao-devsecops)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: devsecops
description: >
  Use this skill when the user says 'DevSecOps', 'shift-left security', 'SAST in CI', 'DAST pipeline', 'secret scanning in CI', 'security gate', 'pipeline hardening'. Embeds automated SAST, DAST, dependency and secret scanning into CI/CD with policy gates. Do NOT use for: deep SAST/DAST tool configuration (use security/sast-dast), secrets storage/rotation (use security/secrets-management), or SBOM generation (use security/sbom).
version: "1.0.0"
author: "j4flmao"
license: "MIT"
tags: [security, devsecops, ci-cd, sast, dast, shift-left]
---
# DevSecOps: Automated Security Scanning

## Purpose
Embed security directly into CI/CD pipelines to catch vulnerabilities early (shift-left). Covers Static Application Security Testing (SAST), Dynamic Application Security Testing (DAST), dependency scanning, and secret scanning, with explicit pass/fail gates that block merges on verified findings.

## Agent Protocol

### Trigger
User phrases: "DevSecOps pipeline", "shift-left security", "add SAST to CI", "secret scanning in CI", "security gate".

### Input Context
- CI platform (GitHub Actions, GitLab CI, etc.) and languages in the repo.
- Which scan classes are required and the gating policy.

### Output Artifact
A pipeline definition with scan stages and a gate. No secrets committed.

### Response Format
```
Stage: {sast|dast|secrets|deps}
Tool: {Semgrep | TruffleHog | Trivy | ...}
Gate: {block on verified/high | warn}
```

## Pipeline Architecture

```mermaid
%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
    A[Push Code] --> B[Lint & Unit Test]
    B --> C{Security Scans}
    C -->|SAST| D[Semgrep / CodeQL]
    C -->|Secrets| E[TruffleHog / Gitleaks]
    C -->|Dependencies| F[Dependabot / Trivy]
    D & E & F --> G{Gate}
    G -->|Pass| H[Build Image]
    G -->|Fail| I[Block PR]
    H --> J[DAST Scan]
    J --> K[Deploy]
```

## GitHub Actions Example (SAST & Secrets)

```yaml
name: DevSecOps Pipeline
on: [push, pull_request]

jobs:
  security-scans:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout Code
        uses: actions/checkout@v4

      - name: Secret Scanning (TruffleHog)
        uses: trufflesecurity/trufflehog@main
        with:
          path: ./
          base: ${{ github.event.repository.default_branch }}
          head: HEAD
          extra_args: --only-verified

      - name: SAST Scanning (Semgrep)
        # The legacy returntocorp/semgrep-action is deprecated; run `semgrep ci`
        # from the official package/image instead.
        run: |
          pip install semgrep
          semgrep ci --config p/default
        env:
          SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }}
```

> Note: `returntocorp/semgrep-action@v1` is deprecated. Current practice is `semgrep ci` (official `semgrep/semgrep` image or the pip package). Pin third-party actions/images to a release tag or SHA rather than `@main` in production.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.