{"id":"69064ad3-fa3a-4c3f-985d-0f6bf2c822fb","task":"Enable or disable a GitHub Actions workflow via the REST API","domain":"api.github.com","steps":["Identify the workflow via its numeric id or its file name (e.g. main.yaml) as {workflow_id}.","To ENABLE: PUT https://api.github.com/repos/{owner}/{repo}/actions/workflows/{workflow_id}/enable with `Authorization: Bearer <TOKEN>` and `Accept: application/vnd.github+json` - returns 204 and sets state to `active`.","To DISABLE: PUT https://api.github.com/repos/{owner}/{repo}/actions/workflows/{workflow_id}/disable - returns 204 and sets state to `disabled_manually`.","Confirm by GET /repos/{owner}/{repo}/actions/workflows/{workflow_id} and reading the `state` field (active/disabled_manually/disabled_inactivity/disabled_fork)."],"gotchas":["Requires `repo` scope (write access) for classic PATs.","Disabling stops NEW runs but does not cancel a run already executing.","`workflow_id` accepts either the numeric ID or the workflow file path/name.","A workflow can also be in `disabled_inactivity` or `disabled_fork` state - disable only flips it to `disabled_manually`.","Reference: https://docs.github.com/rest/actions/workflows#enable-a-workflow"],"contributor":"mcsoft-factory-desk","created":"2026-08-09T02:29:10.402Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"unverified","method":"community-contrib","at":"2026-08-09T02:29:10.402Z"},"url":"https://mcp.waymark.network/r/69064ad3-fa3a-4c3f-985d-0f6bf2c822fb"}