> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/action-center/github/update-issue-on-github.md).

# Update Issue on Github

Updates one existing issue in a Github repository. The job writes a new issue body that holds the workflow description and, for each selected asset type, a table of the matched assets with the columns you set for the workflow. Use it to keep a long-lived tracking issue current instead of opening a new one on every run.

### Before you begin

* A Github repository with issues enabled, and a fine-grained access token with the **Issues** repository permission set to write.
* Labels, assignees and milestone only take effect when the token has push access to the repository. Github ignores them otherwise.
* An existing issue in the repository, and its number.
* Asset types: Device, User, Application, Vulnerability, Certificate, Service, Source Code, AI, Domain and License. The job builds a table for each selected asset type that has columns set for the workflow (see **Edit Columns** in [About Action Center](broken://pages/9f767b1ee7bb5bbdcab2235e842b9ff34cb22814)).
* No required columns.
* Defaults: you can save the connection fields once under **Action Center** > **Settings** > **Github**. See [Action Center Settings](broken://pages/a97e438814be9d4cf4447cc855f67e6d5b6b44ce).

### Settings

| Setting          | Type             | Required | Default                  | Description                                                                                    |
| ---------------- | ---------------- | -------- | ------------------------ | ---------------------------------------------------------------------------------------------- |
| Domain           | URL              | No       | <https://api.github.com> | The Github API URL. For Github Enterprise Server use `https://<host>/api/v3`.                  |
| Access Token     | Text (sensitive) | Yes      | None                     | Fine-grained token with the Issues repository permission set to write. Masked after saving.    |
| API Version      | Text             | No       | 2026-03-10               | Sent as the `X-GitHub-Api-Version` header. Github Enterprise Server may need an older version. |
| Organization     | Text             | Yes      | None                     | Owner of the repository, an organization or a username.                                        |
| Repository       | Text             | Yes      | None                     | Repository name without the `.git` suffix.                                                     |
| Labels           | List             | No       | Empty                    | Labels to send. Github replaces the existing labels with this list.                            |
| Assignees        | List             | No       | Empty                    | Github usernames to send. Github replaces the existing assignees with this list.               |
| Milestone Number | Number           | No       | None                     | The number of the milestone, not its title. Requires push access.                              |
| Timeout          | Number           | No       | 30                       | Timeout for Github API requests in seconds.                                                    |
| Issue Number     | Number           | Yes      | None                     | The issue number shown in Github, for example 1347 for `/issues/1347`. Minimum 1.              |
| Issue Title      | Text             | No       | None                     | Leave empty to keep the current title.                                                         |
| Issue State      | Choice           | No       | None                     | `open` or `closed`. Leave empty to keep the current state.                                     |

### How it works

* If none of the selected asset types has matched assets (and columns set), the job writes a warning to the log and does not update the issue. The node still completes.
* Otherwise it sends one PATCH request to `<Domain>/repos/<Organization>/<Repository>/issues/<Issue Number>`, one update for all assets, and expects status 200.
* The generated text is sent as the issue body. It starts with the workflow description (or the workflow title when the description is empty, cut to 4096 characters). Then, for each asset type, it adds a heading `<asset type> count: N` and a table with one row per asset and one column per workflow column. A pipe character or line break inside a value is replaced so the table stays intact. The body ends with `Powered by OctoXLabs`.
* Github limits the body to 65536 characters. When the table does not fit, the remaining assets are dropped, a warning is logged, and the issue says `Output truncated. N more assets are not shown.`
* Issue Title and Issue State are sent only when you fill them in. Labels and assignees are sent only when you fill them in, and so is the milestone. Github replaces these collections instead of merging them, so an empty value is left out rather than clearing the issue.
* If Github answers with another status, the job fails with a message for the common cases (for example 401 token rejected, 404 repository not found, 410 issues disabled, 422 request rejected). Redirects are not followed, so a renamed repository (301) is reported as an error: update **Organization** and **Repository**.
* The job passes on all assets it received, unchanged, through the **NEXT** edge.

To open a new issue instead, see [Create Issue on Github](broken://pages/cb36aef57fc9aa6e26b770bd439db81089c1cb07), which has the same connection fields and no Issue Number or Issue State.

### Example

```
Domain: https://api.github.com
Access Token: YOUR_GITHUB_TOKEN
Organization: example-org
Repository: security-findings
Issue Number: 1347
Issue State: open
Labels: security, octoxlabs
```

### What's next?

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>About Action Center</strong></td><td>Workflows, triggers, conditions and job nodes.</td><td><a href="broken://pages/9f767b1ee7bb5bbdcab2235e842b9ff34cb22814">Broken link</a></td></tr><tr><td><strong>Action Center Settings</strong></td><td>Save connection defaults for Github jobs.</td><td><a href="broken://pages/a97e438814be9d4cf4447cc855f67e6d5b6b44ce">Broken link</a></td></tr><tr><td><strong>Create Issue on Github</strong></td><td>Open a new issue with the matched assets.</td><td><a href="broken://pages/cb36aef57fc9aa6e26b770bd439db81089c1cb07">Broken link</a></td></tr></tbody></table>
