{
  "name": "discord-post",
  "title": "Post a message to Discord",
  "category": "Notifications",
  "tags": [
    "curl",
    "notifications"
  ],
  "version": "1.0.1",
  "date": "2026-08-02",
  "notes": "Move curlimages/curl from 8.11.1 to 8.21.0. Fixable CRITICAL/HIGH drops from 26 to 1.",
  "latest": true,
  "installable": true,
  "url": "https://catalog.dagweave.com/api/v1/items/discord-post/1.0.1.json",
  "templateUrl": "https://catalog.dagweave.com/api/v1/items/discord-post/1.0.1/template.yaml",
  "entrypoint": "post",
  "parameters": [
    {
      "name": "content",
      "title": "Content",
      "description": "The message content to post to the Discord channel.",
      "type": "string",
      "required": true
    },
    {
      "name": "webhook-secret-key",
      "title": "Webhook secret key",
      "description": "Key within the Secret that holds the webhook URL.",
      "type": "string",
      "required": false,
      "default": "url"
    },
    {
      "name": "webhook-secret-name",
      "title": "Webhook secret name",
      "description": "Name of the Kubernetes Secret in the run namespace holding the Discord webhook URL.",
      "type": "string",
      "required": false,
      "default": "discord-webhook"
    }
  ],
  "images": [
    {
      "ref": "curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93",
      "repository": "curlimages/curl",
      "tag": "8.23.0",
      "digest": "sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93"
    }
  ],
  "install": {
    "kubectl": "kubectl apply -n argo -f https://catalog.dagweave.com/api/v1/items/discord-post/1.0.1/template.yaml",
    "argo": "argo template create -n argo https://catalog.dagweave.com/api/v1/items/discord-post/1.0.1/template.yaml"
  },
  "template": "apiVersion: argoproj.io/v1alpha1\nkind: WorkflowTemplate\nmetadata:\n  name: discord-post\n  labels:\n    dagweave.io/catalog-item: discord-post\n  annotations:\n    # The catalog semver this manifest was authored at. The dagweave app records\n    # (catalog-item-id, semver) -\u003e content-hash -\u003e base-vN when it mints the tenant\n    # cluster name via ResolveOrMint. Keep in sync with metadata.yaml `version`.\n    dagweave.io/catalog-version: \"1.0.1\"\n    dagweave.io/catalog-category: \"Notifications\"\nspec:\n  entrypoint: post\n  templates:\n    - name: post\n      inputs:\n        parameters:\n          # The message content to post to the Discord channel.\n          - name: content\n          # Name/key of the Kubernetes Secret in the run namespace holding the Discord\n          # webhook URL. Defaults let a user leave them blank in the Inspector.\n          - name: webhook-secret-name\n            default: discord-webhook\n          - name: webhook-secret-key\n            default: url\n      container:\n        # Pinned by digest per the catalog convention: an image rebuild can never\n        # silently change the behaviour of an already-released item version.\n        # curlimages/curl:8.23.0\n        image: curlimages/curl@sha256:3fb7e13e5d179a845c97d78204f3f1064d1907037f26a3ebf91710571151fd93\n        command: [sh, -c]\n        # Values are passed as env vars (below), never interpolated into the shell,\n        # so content containing quotes or shell metacharacters is safe. Discord's\n        # Execute Webhook endpoint accepts application/x-www-form-urlencoded, and\n        # --data-urlencode escapes the value, so no jq / JSON assembly is needed.\n        args:\n          - |\n            set -eu\n            curl -sSf -X POST \"$WEBHOOK_URL\" \\\n              --data-urlencode \"content=${CONTENT}\"\n        env:\n          - name: CONTENT\n            value: \"{{inputs.parameters.content}}\"\n          - name: WEBHOOK_URL\n            valueFrom:\n              secretKeyRef:\n                name: \"{{inputs.parameters.webhook-secret-name}}\"\n                key: \"{{inputs.parameters.webhook-secret-key}}\"\n",
  "templateSha256": "7dba918fc3a2fa7780c95697f4d559a51df7d835615b3e1ddd8709588457df61",
  "source": "https://github.com/dagweave/catalog/tree/67458f74dbbf913b03177f3cefc69424be85eb1d/catalog/discord-post",
  "catalogSha": "67458f74dbbf913b03177f3cefc69424be85eb1d"
}
