{
  "schemaVersion": "ebb.rule.v1",
  "id": "github-actions.workflow-command.add-path",
  "ecosystem": "github-actions",
  "purl": "pkg:generic/github-actions/add-path",
  "affectedVersions": "vers:semver/*",
  "event": "removed",
  "severity": "high",
  "title": "Removed GitHub Actions ::add-path command",
  "summary": "GitHub removed the ::add-path workflow command. Append to the GITHUB_PATH environment file instead.",
  "replacement": "$GITHUB_PATH",
  "deadline": "2020-11-16",
  "sources": [
    {
      "title": "GitHub Actions: Removing set-env and add-path commands on November 16",
      "url": "https://github.blog/changelog/2020-11-09-github-actions-removing-set-env-and-add-path-commands-on-november-16/",
      "accessedAt": "2026-11-05"
    }
  ],
  "provenance": {
    "observedAt": "2026-11-05",
    "reviewedAt": "2026-11-05",
    "reviewer": "arminazimi"
  },
  "migration": {
    "constraints": [
      "Use environment files with a runner version supporting them. Multiline values require delimiter syntax.",
      "Preserve the effective shell and quote expansion; never copy encoded command values directly."
    ],
    "steps": [
      {
        "id": "use-environment-file",
        "title": "Append to GITHUB_PATH",
        "instructions": "Replace literal single-line echo commands with the corresponding environment-file append to \"$GITHUB_PATH\". Migrate complex values manually.",
        "targets": "declaration"
      }
    ],
    "verification": [
      {
        "command": "git diff --check",
        "purpose": "Review the workflow patch before running it."
      }
    ]
  }
}
