{
  "name": "git-clone",
  "title": "Shallow-clone a git repository",
  "category": "Git",
  "tags": [
    "git"
  ],
  "version": "1.0.1",
  "date": "2026-08-02",
  "notes": "Move alpine/git from 2.45.2 to 2.54.0. Clears all 55 fixable CRITICAL/HIGH; the image now scans clean.",
  "latest": false,
  "installable": false,
  "url": "https://catalog.dagweave.com/api/v1/items/git-clone/1.0.1.json",
  "entrypoint": "clone",
  "parameters": [
    {
      "name": "repo-url",
      "title": "Repository URL",
      "description": "HTTPS clone URL of the repository.",
      "type": "string",
      "required": true
    },
    {
      "name": "depth",
      "title": "Depth",
      "description": "Number of commits to fetch.",
      "type": "string",
      "required": false,
      "default": "1"
    },
    {
      "name": "password-key",
      "title": "Password key",
      "type": "string",
      "required": false,
      "default": "password"
    },
    {
      "name": "path",
      "title": "Destination path",
      "type": "string",
      "required": false,
      "default": "/work"
    },
    {
      "name": "ref",
      "title": "Ref",
      "description": "Branch or tag to clone (a shallow clone requires a named ref).",
      "type": "string",
      "required": false,
      "default": "main"
    },
    {
      "name": "secret-name",
      "title": "Credentials secret name",
      "description": "Kubernetes Secret with the git username/password. Optional for a public repo.",
      "type": "string",
      "required": false,
      "default": "git-credentials"
    },
    {
      "name": "username-key",
      "title": "Username key",
      "type": "string",
      "required": false,
      "default": "username"
    }
  ],
  "images": [
    {
      "ref": "alpine/git@sha256:ac6c828f15d82775d204d3d75112e1d34af8945da80ccf922713c9891ba68e7a",
      "repository": "alpine/git",
      "tag": "2.54.0",
      "digest": "sha256:ac6c828f15d82775d204d3d75112e1d34af8945da80ccf922713c9891ba68e7a"
    }
  ],
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/git-clone",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
