> 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/create-issue-on-github.md).

# Create Issue on Github

Opens one new issue in a Github repository. The issue body 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 hand a list of findings, such as devices with a high CVSS score, to the team that owns the repository.

### 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.
* 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 set on the issue.                                                                    |
| Assignees        | List             | No       | Empty                    | Github usernames to assign.                                                                    |
| 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 Title      | Text             | Yes      | None                     | Title of the new issue.                                                                        |

### 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 create an issue. The node still completes.
* Otherwise it sends one POST request to `<Domain>/repos/<Organization>/<Repository>/issues`, one issue for all assets, and expects status 201.
* The body 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.`
* Labels, assignees and the milestone are sent only when you fill them in.
* 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 change an issue that already exists, see [Update Issue on Github](broken://pages/c1f7b5423be0df840af49f7a8963bb577c319a76), which has the same connection fields.

### Example

```
Domain: https://api.github.com
Access Token: YOUR_GITHUB_TOKEN
Organization: example-org
Repository: security-findings
Issue Title: Devices with a CVSS score above 7
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>Update Issue on Github</strong></td><td>Update an existing issue with the matched assets.</td><td><a href="broken://pages/c1f7b5423be0df840af49f7a8963bb577c319a76">Broken link</a></td></tr></tbody></table>
