{
  "x402Version": 2,
  "id": 29310,
  "slug": "29310",
  "resource": "https://api.agentstools.dev/ci/scan",
  "description": "Static security scan of a CI/CD pipeline config: GitHub Actions, GitLab CI or CircleCI. Detects unpinned actions / images / orbs, template and environment injection, dangerous triggers, over-broad workflow-token permissions, secrets leaked to logs, cache poisoning and more. Returns a verdict (pass, caution, block), a 0-100 risk score and per-finding rule, severity, object, location and a concrete fix hint. Security indicators, not a guarantee.",
  "type": "http",
  "serviceName": "cicd-scan",
  "resourceType": "Agent Service",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xF22e558a00D91Ee12A1F50C52186FecB8dDFf493",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "20000",
      "amountUsd": 0.02,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "content": "name: ci\non: pull_request_target\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v4\n      with:\n        ref: ${{ github.event.pull_request.head.ref }}\n    - run: echo \"${{ github.event.issue.title }}\"\n",
            "format": "github-actions"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "config_hash": "sha256:…",
            "counts_by_severity": {
              "critical": 2,
              "high": 1
            },
            "coverage": {
              "dimensions_flagged": [
                "injection",
                "triggers"
              ],
              "objects_by_kind": {
                "job": 1,
                "step": 2,
                "workflow": 1
              },
              "objects_scanned": 4,
              "rules_total": 27
            },
            "disclaimer": "Automated security indicators, not a guarantee.",
            "findings": [
              {
                "dimension": "injection",
                "evidence": "${{ github.event.issue.title }}",
                "fix_hint": "Bind it to an env var and quote the shell reference.",
                "path": "jobs.build.steps[1]",
                "provider": "github-actions",
                "reason": "An attacker-controllable expression is expanded inside a run: script — arbitrary code execution on the runner.",
                "resource": "build.step1",
                "rule_id": "gha.template_injection",
                "severity": "critical"
              }
            ],
            "format": "github-actions",
            "object": "ci_config",
            "object_count": 4,
            "risk_score": 100,
            "ruleset_version": "2026.07.24",
            "verdict": "block"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "content": {
                    "description": "The CI/CD config text to scan (workflow file)",
                    "type": "string"
                  },
                  "format": {
                    "description": "CI system, or auto to detect from the content",
                    "enum": [
                      "auto",
                      "github-actions",
                      "gitlab-ci",
                      "circleci"
                    ],
                    "type": "string"
                  }
                },
                "required": [
                  "content"
                ]
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "cicd",
    "github-actions",
    "gitlab",
    "circleci",
    "security",
    "bazaar"
  ],
  "sourceHost": "api.agentstools.dev",
  "lastUpdated": "2026-10-08T06:09:54.716Z",
  "quality": {
    "calls30d": 1,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-08T06:09:54.474Z"
  },
  "metadata": {
    "serviceName": "cicd-scan",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "content": "name: ci\non: pull_request_target\njobs:\n  build:\n    runs-on: ubuntu-latest\n    steps:\n    - uses: actions/checkout@v4\n      with:\n        ref: ${{ github.event.pull_request.head.ref }}\n    - run: echo \"${{ github.event.issue.title }}\"\n",
              "format": "github-actions"
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "config_hash": "sha256:…",
              "counts_by_severity": {
                "critical": 2,
                "high": 1
              },
              "coverage": {
                "dimensions_flagged": [
                  "injection",
                  "triggers"
                ],
                "objects_by_kind": {
                  "job": 1,
                  "step": 2,
                  "workflow": 1
                },
                "objects_scanned": 4,
                "rules_total": 27
              },
              "disclaimer": "Automated security indicators, not a guarantee.",
              "findings": [
                {
                  "dimension": "injection",
                  "evidence": "${{ github.event.issue.title }}",
                  "fix_hint": "Bind it to an env var and quote the shell reference.",
                  "path": "jobs.build.steps[1]",
                  "provider": "github-actions",
                  "reason": "An attacker-controllable expression is expanded inside a run: script — arbitrary code execution on the runner.",
                  "resource": "build.step1",
                  "rule_id": "gha.template_injection",
                  "severity": "critical"
                }
              ],
              "format": "github-actions",
              "object": "ci_config",
              "object_count": 4,
              "risk_score": 100,
              "ruleset_version": "2026.07.24",
              "verdict": "block"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "content": {
                      "description": "The CI/CD config text to scan (workflow file)",
                      "type": "string"
                    },
                    "format": {
                      "description": "CI system, or auto to detect from the content",
                      "enum": [
                        "auto",
                        "github-actions",
                        "gitlab-ci",
                        "circleci"
                      ],
                      "type": "string"
                    }
                  },
                  "required": [
                    "content"
                  ]
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.agentstools.dev",
    "manifest_name": "api.agentstools.dev",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "config_hash": "sha256:…",
    "counts_by_severity": {
      "critical": 2,
      "high": 1
    },
    "coverage": {
      "dimensions_flagged": [
        "injection",
        "triggers"
      ],
      "objects_by_kind": {
        "job": 1,
        "step": 2,
        "workflow": 1
      },
      "objects_scanned": 4,
      "rules_total": 27
    },
    "disclaimer": "Automated security indicators, not a guarantee.",
    "findings": [
      {
        "dimension": "injection",
        "evidence": "${{ github.event.issue.title }}",
        "fix_hint": "Bind it to an env var and quote the shell reference.",
        "path": "jobs.build.steps[1]",
        "provider": "github-actions",
        "reason": "An attacker-controllable expression is expanded inside a run: script — arbitrary code execution on the runner.",
        "resource": "build.step1",
        "rule_id": "gha.template_injection",
        "severity": "critical"
      }
    ],
    "format": "github-actions",
    "object": "ci_config",
    "object_count": 4,
    "risk_score": 100,
    "ruleset_version": "2026.07.24",
    "verdict": "block"
  }
}