---
url: /issues.md
---
# Issues

Executions and their reports are immutable: once a playbook has run, its output and its pass/fail result never change. **Issues** are the mutable layer on top of them. An issue is an assert failure or a tool hit (semgrep, pyspector, trufflehog, etc.) that has been promoted to something your team tracks: it has a status, a severity, an assignee and a timeline of comments and events.

Tool hits come from structured JSON stdout. When writing playbooks, prefer each tool’s JSON flags — see [Tool output](playbooks/tool-output.md).

Issues are created from the web dashboard (the *Triage* button of a report) and can be listed, inspected, commented on and turned into GitHub security advisories from the CLI.

| Command | Description |
| --- | --- |
| `satori-v2 issues` | List issues across all your executions (sorted by severity) |
| `satori-v2 issues EXECUTION-ID` | List the issues of one execution |
| `satori-v2 report EXECUTION-ID issues` | Same as `issues EXECUTION-ID` |
| `satori-v2 issue ISSUE-ID` | Show one issue |
| `satori-v2 issue ISSUE-ID status STATUS` | Set the issue status |
| `satori-v2 issue ISSUE-ID exploitability VALUE --reason TEXT` | Set whether the issue is exploitable |
| `satori-v2 issue ISSUE-ID comment BODY` | Add a comment to the issue |
| `satori-v2 issue ISSUE-ID verify` | Verify the issue with Claude Code (TP/FP) |
| `satori-v2 run PLAYBOOK --repo owner/repo --verify` | After a run finishes, verify every finding the same way |
| `satori-v2 local PLAYBOOK --repo owner/repo --verify` | Run locally against a cloned repo, then verify every finding |
| `satori-v2 issue ISSUE-ID advisory` | Create a draft GitHub security advisory from an issue |
| `satori-v2 issue ISSUE-ID advisory --improve` | Rewrite the draft into a full report with Claude Code |
| `satori-v2 issue ISSUE-ID advisory --publish` | Publish the draft advisory to GitHub |
| `satori-v2 issue ISSUE-ID advisory --status` | Fetch the live GitHub advisory status |
| `satori-v2 issue ISSUE-ID advisory --delete` | Delete the advisory |
| `satori-v2 issue ISSUE-ID publish-issue` | Report the issue through a public GitHub issue that links to Satori |
| `satori-v2 issue ISSUE-ID publish` | Report the issue as an advisory or as a public issue, whichever the repository takes |
| `satori-v2 issue ISSUE-ID channel` | Print which of the two the repository takes |
| `satori-v2 advisories` | List external issues (e.g. GitHub security advisories) you created |
| `satori-v2 advisory ADVISORY-ID` | Show one external issue |
| `satori-v2 advisory ADVISORY-ID edit` | Edit a draft advisory's title, description, severity or CVSS vector |
| `satori-v2 advisory ADVISORY-ID visibility VISIBILITY` | Set the external issue visibility |

## Listing issues

```sh
satori-v2 issues
satori-v2 issues --status OPEN --severity high,critical
satori-v2 issues --exploitability EXPLOITABLE
satori-v2 issues --execution-id V1StGXR8Z5jdHi6BmyT2k --source TOOL --json
satori-v2 issues V1StGXR8Z5jdHi6BmyT2k
satori-v2 report V1StGXR8Z5jdHi6BmyT2k issues
```

`issues` without an execution ID lists issues across all your executions. Pass an optional `EXECUTION-ID` argument (or `--execution-id`) to limit the list to one report. By default the list is sorted from highest severity to lowest; use `--order` to override that.

| Flag | Description |
| --- | --- |
| `EXECUTION-ID` | Optional positional argument; only issues of this execution |
| `--execution-id ID` | Same as the positional `EXECUTION-ID` (cannot conflict with it) |
| `--status STATUS` | One of `OPEN`, `INVESTIGATING`, `TP`, `FIXED`, `FP`, `ACCEPTED` |
| `--exploitability VALUE` | One of `UNKNOWN`, `EXPLOITABLE`, `NOT_EXPLOITABLE`, `INCONCLUSIVE` |
| `--source {ASSERT\|TOOL}` | `ASSERT` for failed playbook asserts, `TOOL` for hits reported by a tool |
| `--severity LEVELS` | Comma-separated severities: `BLOCKER`, `CRITICAL`, `HIGH`, `MEDIUM`, `LOW`, `INFO` (e.g. `high,critical`) |
| `--order {ASC\|DESC}` | Sort order (disables the default severity sort) |
| `--json` | Print the list as JSON |
| `--page N` | Page number (default 1) |
| `-q, --quantity N` | Results per page (default 200, alias `-l/--limit`) |

`report EXECUTION-ID issues` accepts the same flags except `--execution-id` and `--exploitability`.

Each row shows the issue ID, which you then pass to `issue`, and the issue's [exploitability](#exploitability).

### Issue statuses

| Status | Meaning |
| --- | --- |
| `OPEN` | Newly triaged, nobody has looked at it yet |
| `INVESTIGATING` | Someone is checking whether it is real |
| `TP` | Verified as a real problem (true positive) |
| `FIXED` | The underlying problem was solved |
| `FP` | The tool or assert was wrong (false positive) |
| `ACCEPTED` | Real, but the team decided not to act on it |

Statuses can be changed from the dashboard or from the CLI with `issue ISSUE-ID status`:

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j status investigating
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j status fixed
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j status fp --json
```

There is no fixed transition order.

### Exploitability

Independently of its status, an issue records whether it can actually be exploited:

| Value | Meaning |
| --- | --- |
| `UNKNOWN` | Not assessed yet (default) |
| `EXPLOITABLE` | It can be exploited |
| `NOT_EXPLOITABLE` | It cannot be exploited (for example, the code is unreachable) |
| `INCONCLUSIVE` | It was assessed, but the result is not clear |

Set it with `issue ISSUE-ID exploitability`. `--reason` is required for every value except `UNKNOWN`, and is recorded in the issue's timeline:

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j exploitability EXPLOITABLE --reason "User input reaches os.system"
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j exploitability NOT_EXPLOITABLE --reason "Only called from tests" --json
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j exploitability UNKNOWN
```

Without `--json`, the CLI prints `Issue {ISSUE-ID} exploitability set to {VALUE}`. With `--json`, it prints the updated issue. Filter the list with `satori-v2 issues --exploitability VALUE`.

[`verify`](#verifying-an-issue) also sets it, but never to `EXPLOITABLE`: its agents read the code and execute nothing. When the verdict is `TP` and the exploitability is still `UNKNOWN`, the issue is marked `INCONCLUSIVE` with the agents' evidence as the reason. A value already set, by a tool that reproduced the issue or by a person, is left as it is.

## Inspecting an issue

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j --json
```

Shows the issue details: title, status, exploitability, severity, source, the execution it belongs to and, when set, the assignee. A **Snapshot** panel shows the assert or tool hit behind the issue (test path and assert name, or tool, check ID, file and line), and a **History** panel shows the timeline of status changes, comments and other events, with actor display names when available. With `--json`, the timeline is the `history` key of the issue object.

## Comments

Add a comment to an issue's timeline:

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j comment "Investigating this further"
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j comment "Looks like a false positive" --json
```

Without `--json`, the CLI prints `Comment {id} added to issue {ISSUE-ID}`. With `--json`, it prints the created comment object.

## Verifying an issue

`issue ISSUE-ID verify` uses [Claude Code](https://docs.anthropic.com/en/docs/claude-code) to decide whether the issue is a true positive (`TP`) or a false positive (`FP`):

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j verify
```

The command clones the repository tied to the issue's execution and judges the issue with two Claude Code agents that read the code: an analyst and an adversary that argues the issue is a false positive. If they disagree, a third agent breaks the tie. The command then sets the issue status to `TP` or `FP`. The agents only read the code, so a `TP` is not proof of exploitation: when the exploitability is still `UNKNOWN`, it is marked `INCONCLUSIVE`, with the reason `Static review, not executed:` followed by the agents' evidence (the input source, the path to the sink and why it is reachable). An exploitability already set is not changed. An [advisory](#github-security-advisories) needs `EXPLOITABLE`: that comes from a tool that reproduced the issue, or from [`issue ISSUE-ID exploitability`](#exploitability) once you have confirmed it.

The agents can only read files (`Read`, `Grep`, `Glob`). Before they start, the clone's own agent configuration (`.claude`, `.mcp.json`, `CLAUDE.md`, `AGENTS.md`, `.cursorrules`) is renamed to `*.bak`, so a repository cannot run commands or change the instructions of the review.

Requirements:

* `git` and `claude` must be available on your `PATH`. If `claude` is missing, install it with `npm install -g @anthropic-ai/claude-code`.
* The execution must have a repository recorded: a `run` or `local` on a repository, or a scan. Each execution of a wildcard scan (`owner/*`) records the repository it ran on, so its issues can be verified too.
* The repository is cloned from `https://github.com/owner/repo.git` without prompting for credentials. For a private repository, set up `git` credentials for github.com first.

The agents always use your local Claude Code login. The command ignores `ANTHROPIC_API_KEY`, `ANTHROPIC_BASE_URL` and `ANTHROPIC_MODEL`, so it never bills an API key or switches model.

The command prints one line per issue: `finding ISSUE-ID: TP`, `FP` or `undecided`. When the agents reach no verdict (`undecided`), the issue status does not change. If Claude's usage limit is reached, run the command again to continue. To see which repository is cloned and where, add the root `--debug` flag: `satori-v2 --debug issue ISSUE-ID verify`.

To verify every finding after a run finishes, use `--verify` on `run` or `local` (same Claude flow, one clone for the whole batch):

```sh
satori-v2 run PLAYBOOK --repo owner/repo --verify
satori-v2 local PLAYBOOK --repo owner/repo --verify
```

Add `--min-severity LEVEL` (`Blocker`, `Critical`, `High`, `Medium`, `Low`, `Info`) to verify only the findings at or above that severity:

```sh
satori-v2 run PLAYBOOK --repo owner/repo --verify --min-severity High
```

## Automatic fix pull requests

Satori can open a pull request with the fix of an issue as soon as a scan finds it. It is off by default: turn on **Automatically open fix PRs when possible** in the **Fix pull requests** card of the dashboard's Settings page (`automation.automatically_open_fix_prs` in `PATCH /settings`). The setting is per user and applies to the scans that user owns, including the ones a [push](modes/ci/github.md#what-a-push-runs) starts.

A pull request is opened only when all of this is true:

* The issue was found by the public playbook `satori://code/javascript/jsspector.yml`, imported as is.
* The tool reproduced the issue (the issue is `EXPLOITABLE`) and proved that its fix removes it.
* The repository's default branch is still at the commit that was scanned.
* The Satori GitHub Application covers the repository with **Contents** and **Pull requests** write permissions. For a scan of an [organization](organizations.md), that is the organization's installation or your own.

The pull request is opened on a branch that starts with `satori/fix-ISSUE-ID`, and the issue's history records it. Satori never merges it.

* Issues are saved while the execution is still running, so the pull request can appear before the scan finishes.
* A later scan that finds the same issue with the same fix keeps the pull request that is already open instead of opening another one.
* When a later scan with that playbook reproduces the issue but no longer proposes the fix, the issue stops offering it. A pull request that is already open is not closed.
* When the pull request cannot be opened (for example, the App lacks the permissions), the issue is saved without it and no error is shown.

## GitHub security advisories

`issue ISSUE-ID advisory` creates a **draft** external issue for the issue, through the Satori [GitHub Application](https://github.com/apps/satorici). It does **not** publish to GitHub yet. The command prints the draft details, a dashboard link (`View on web: …/advisories/{id}`), and a warning with the publish recipe.

If the issue's execution is `PRIVATE`, creating the draft promotes it to `UNLISTED` so the report link embedded in the advisory is reachable by anyone who can open the advisory.

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory --json
```

To publish the draft to GitHub as a security advisory in the repository of the execution, use `--publish`. The command prints the advisory URL (the `GHSA-...` identifier if no URL is available):

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory --publish
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory --publish --json
```

A repository that does not accept private vulnerability reports has no advisories, so `--publish` fails there and tells you to run [`issue ISSUE-ID publish`](#choosing-the-channel-automatically) instead. Nothing is sent to GitHub.

To delete the advisory (draft or published), use `--delete`:

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory --delete
```

The CLI prints `Advisory deleted`. If the advisory could not be closed on GitHub, it also prints a `WARNING` with the reason.

To check the advisory's current state on GitHub (for example `triage`, `draft`, or `published`), use `--status`. This is a live lookup against GitHub; the advisory must already be published (have a remote `GHSA-…` id), and you need a GitHub personal access token configured via settings:

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory --status
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory --status --json
```

Without `--json`, the CLI prints the status string. With `--json`, it prints `{"status": "…"}`.

`--publish`, `--status`, `--delete` and `--improve` are mutually exclusive.

Requirements:

* The issue must have status `TP` and exploitability `EXPLOITABLE`, both to create the draft and to publish it. [`verify`](#verifying-an-issue) sets the status; the exploitability comes from a tool that reproduced the issue or from [`issue ISSUE-ID exploitability`](#exploitability).
* The execution must belong to a `run --repo owner/repo`, a `local --repo owner/repo`, or to a scan of a single `owner/repo` repository. Executions that span several repositories are rejected.
* The Satori GitHub Application must be installed and active on that repository.
* Only one external issue can exist per finding. Running `advisory` again for an issue that already has a draft or published advisory returns the existing one instead of creating a second one.
* To publish, the draft needs a severity and a [CVSS 4.0 vector](#cvss) whose severity matches it, and you need a GitHub personal access token configured (`satori-v2 config pat TOKEN`).

### Improving the draft with Claude Code

The generated draft is a technical summary of the tool hit. `--improve` rewrites its title and description into a full report with Claude Code:

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory --improve
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory --improve --json
```

The improved draft has:

* A title in the form `<vulnerability class> in <component> leads to <consequence>`.
* A description with three sections: **Summary**, **Vulnerable Code** (the file, the line numbers and the code itself, with the data flow that reaches it) and **Impact**.
* A CVSS 4.0 vector computed by the agent, and the matching severity, which the CLI derives from the vector. Both are saved as advisory fields, not as text in the description, so the improved draft is ready to publish.

The remediation advice is not part of the advisory. The CLI posts it as a comment on the issue, starting with `Remediation:`.

The report is based only on what was actually confirmed: the issue, its recorded exploitability evidence, the current draft and the repository's code.

It uses the same trust model as [`verify`](#verifying-an-issue): your local `claude`, a clone of the repository with its agent configuration disabled, and read-only tools. It needs `git` and `claude` on your `PATH`. Without `--json`, it prints `Advisory improved` and the new title. If Claude's usage limit is reached, run it again later.

`--improve` only works on a draft. It fails with `Could not improve this advisory` when the issue has no draft yet or the advisory is already published. If the API rejects the CVSS vector, the CLI saves the new title and description only and prints a warning: set the vector with [`edit`](#inspecting-and-updating-an-advisory) before publishing.

Review the result with `satori-v2 advisory ADVISORY-ID` and adjust it with [`edit`](#inspecting-and-updating-an-advisory) before publishing.

### CVSS

GitHub security advisories carry a [CVSS 4.0](https://www.first.org/cvss/v4-0/) Base vector. Before `--publish`, the draft must have one, and the severity it yields (`LOW`, `MEDIUM`, `HIGH` or `CRITICAL`) must match the advisory's severity. Otherwise publishing fails with `Security advisory is missing a CVSS vector` or `Security advisory severity does not match its CVSS vector`.

Set both with `--improve`, with [`advisory ADVISORY-ID edit`](#inspecting-and-updating-an-advisory), or from the advisory page in the dashboard:

```sh
satori-v2 advisory 9aJ2kL5mN8pQ3rS6tU1vW edit --severity HIGH \
  --cvss-vector "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
```

`satori-v2 advisory ADVISORY-ID --json` includes `cvss_vector` and the computed `cvss_score`.

### End-to-end example

```sh
satori-v2 run satori://code/trufflehog.yml --repo satorici/satori-cli --sync --report
satori-v2 issues V1StGXR8Z5jdHi6BmyT2k
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j verify            # TP (static review)
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j exploitability EXPLOITABLE --reason "Reproduced: the key authenticates"
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory          # create the draft
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory --improve
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j advisory --publish
```

### Listing advisories

`satori-v2 advisories` lists the external issues you have already created (GitHub security advisories and related issues):

```sh
satori-v2 advisories
satori-v2 advisories --execution-id V1StGXR8Z5jdHi6BmyT2k
satori-v2 advisories --kind SECURITY_ADVISORY --provider GITHUB --order DESC
satori-v2 advisories --json
```

| Flag | Description |
| --- | --- |
| `--execution-id ID` | Only external issues for this execution |
| `--kind {SECURITY_ADVISORY\|ISSUE}` | Filter by kind |
| `--provider GITHUB` | Filter by provider |
| `--order {ASC\|DESC}` | Sort order |
| `--json` | Print the list as JSON |
| `--page N` | Page number (default 1) |
| `-q, --quantity N` | Results per page (default 10, alias `-l/--limit`) |

Each row shows the advisory ID, which you then pass to `advisory`, the kind (advisory or issue), the state on GitHub and the last comment. See [Tracking reports](#tracking-reports) for the options that filter on the GitHub state and on who commented last.

### Inspecting and updating an advisory

```sh
satori-v2 advisory 9aJ2kL5mN8pQ3rS6tU1vW
satori-v2 advisory 9aJ2kL5mN8pQ3rS6tU1vW --json
```

Shows the advisory details: title, kind, provider, severity, visibility, the related execution and issue, and the external ID/URL on GitHub. It also prints the **Description** and a **History** timeline. With `--json`, the timeline is the `history` key.

To edit a draft before you publish it (for example, to rewrite the generated text), use `edit`. Pass any of `--title`, the description (`--body` or `--description`, in Markdown), `--severity` and `--cvss-vector` (a CVSS 4.0 Base vector, see [CVSS](#cvss)). `--body-file FILE` reads the description from a file and takes precedence over `--body`:

```sh
satori-v2 advisory 9aJ2kL5mN8pQ3rS6tU1vW edit --title "SQL injection in the search endpoint"
satori-v2 advisory 9aJ2kL5mN8pQ3rS6tU1vW edit --body-file advisory.md
satori-v2 advisory 9aJ2kL5mN8pQ3rS6tU1vW edit --severity HIGH --cvss-vector "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N"
```

The CLI prints `Advisory updated`. If the severity and the vector don't match, the update is rejected. You can only edit a draft: after the advisory is published to GitHub, its text cannot change.

To change who can see the advisory in Satori, set its visibility:

```sh
satori-v2 advisory 9aJ2kL5mN8pQ3rS6tU1vW visibility public
satori-v2 advisory 9aJ2kL5mN8pQ3rS6tU1vW visibility private
satori-v2 advisory 9aJ2kL5mN8pQ3rS6tU1vW visibility unlisted
satori-v2 advisory 9aJ2kL5mN8pQ3rS6tU1vW visibility contributors
```

| Visibility | Meaning |
| --- | --- |
| `PUBLIC` | Visible to everyone |
| `PRIVATE` | Visible only to you |
| `UNLISTED` | Accessible by link after login, not listed publicly |
| `CONTRIBUTORS` | Accessible by link to you and to the GitHub contributors of the repository, after login |

#### Sharing an advisory with contributors

`contributors` shows the advisory to the people who work on the repository, and to nobody else. It follows the same rules as a report shared with [contributors](getting-started/execution-data.md#sharing-with-contributors):

* A contributor opens the advisory's link while logged in to Satori with their GitHub account. Without a login the link asks them to log in. To anyone else the advisory doesn't exist.
* A contributor reads the advisory, its issue and the issue's timeline. They don't see it in their listings, don't see its GitHub tracking, and can't change it.
* The repository must be a **public** GitHub repository. For a private repository, or an advisory without one, the command fails.

Publishing sets this visibility for you. When you publish a `PRIVATE` or `UNLISTED` advisory to GitHub, it becomes `CONTRIBUTORS`, and a `PUBLIC` one stays public. When GitHub does not list the contributors (a private repository, for example), the advisory keeps the visibility it had.

An unlisted advisory's link contains its random 21-character ID, so it can't be guessed or found by trying IDs in sequence. Share it only with the people who should see the advisory.

See [Results](getting-started/execution-data.md) for the report commands and [Jobs, Executions & Output](modes/executions.md) for the job and execution model.

### Reporting through a public issue

Some repositories do not accept private vulnerability reports, so a security advisory cannot be published to them. For those, `publish-issue` reports the issue through a regular GitHub issue instead:

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j publish-issue
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j publish-issue --json
```

The command creates the draft if the issue has none, opens the GitHub issue and prints its URL.

A GitHub issue is public, so it carries no detail. Its title is `Security issue report` and its body only says that Satori CI found a security issue and links to the report at `https://dashboard.satori.ci/advisories/{id}`. Keep the following in mind:

* The report becomes visible to the repository's contributors only: a `PRIVATE` or `UNLISTED` report changes to `CONTRIBUTORS`, and a `PUBLIC` one stays public. The maintainer needs to be signed in to Satori with their GitHub account to read it. When GitHub does not list the contributors (a private repository, for example), a `PRIVATE` report becomes `UNLISTED` instead, so that the link opens.
* The execution behind the report follows the same rule: a `PRIVATE` or `UNLISTED` execution changes to [`CONTRIBUTORS`](getting-started/execution-data.md#sharing-with-contributors), and a `PUBLIC` one stays public. When GitHub does not list the contributors, the execution keeps the visibility it had.
* An issue is reported once, either as a security advisory or as a public issue. Publishing a report that is already on GitHub fails.
* The draft does not need a severity or a CVSS vector, because the GitHub issue does not carry them.
* `advisory --status` and `advisory --delete` work on a report published as an issue too. Deleting it closes the GitHub issue.

The dashboard offers the same action as *Publish as issue*, on the report page and on the [issues page](#tracking-reports).

### Choosing the channel automatically

`publish` asks GitHub whether the repository accepts private vulnerability reports, and then reports the issue the way the repository takes it:

```sh
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j publish
satori-v2 issue Xk3pR9sT2vWq7LmN4bH8j channel
```

* If the repository accepts private reports, `publish` sends the security advisory, as `advisory --publish` does. The draft needs its severity and a matching CVSS 4.0 vector. If the draft is not ready the command fails. It does not open a public issue instead.
* Otherwise, `publish` opens the public issue, as `publish-issue` does.

The output starts with the channel that was used (`advisory:` or `issue:`), followed by the GitHub URL. With `--json`, the `kind` field is `SECURITY_ADVISORY` or `ISSUE`.

`channel` prints `advisory` or `issue` without publishing anything. Satori asks GitHub on every call with your GitHub token and does not store the answer.

### Listing the issues left to report

`satori-v2 issues` filters on whether an issue has a report on GitHub and on whether its repository is public:

```sh
satori-v2 issues --exploitability EXPLOITABLE --unreported --public-repo
```

| Option | Description |
| --- | --- |
| `--reported` / `--unreported` | Only the issues with a report published to GitHub, or only the ones without. A draft counts as unreported |
| `--public-repo` / `--private-repo` | Only the issues in a public repository, or only the ones in a known private one. Satori knows a repository is private only when the GitHub App is installed on it. An issue with no repository, such as one from a cloud scan, is in neither list |

`satori-v2 issues` lists the issues of the active organization. On your personal account it lists only the issues you created, even when other users share the account's tenant.

This is the same list as the **To report** tab of the dashboard's issues page, which also filters by the `TP` status by default. The tab shows the name of the active organization above the list; to change it, use the organization selector in the sidebar. To report a batch, list the issue IDs with `--json` and run `publish` for each one:

```sh
satori-v2 issues --exploitability EXPLOITABLE --unreported --public-repo -q 25 --json \
  | jq -r '.items[].id' \
  | while read -r id; do satori-v2 issue "$id" publish; done
```

An issue has to be `TP` and `EXPLOITABLE` to be published, so the loop reports a failure for each issue that is not confirmed yet.

### Tracking reports

Satori keeps GitHub's side of every published report: its state on GitHub (for example `triage`, `closed` or `open`), when it was reported, and who commented last and when.

The dashboard's issues page, `https://dashboard.satori.ci/issues`, is built on this data:

* *To report* lists the issues in public repositories that have no published report yet. It shows the exploitable ones by default. The **Fix** column says whether the tool that found the issue also proved a fix for it (`has_fix=true` or `false` in `GET /findings` filters on it).
* Both tabs show the **Forks** and **Stars** of each issue's repository, as they were when it was scanned, to help you decide what to report first.
* *Reported* lists the published advisories and issues with their GitHub state and the last comment. *They replied* means that someone other than you commented last, so the report is waiting on you.

Opening the issues page syncs your reports with GitHub. The sync uses your own GitHub personal access token, so it covers the reports that you published, and it skips the ones synced in the last 10 minutes. The CLI has no sync command: it shows what the last sync stored. `advisory --status` refreshes a single report.

From the CLI, `advisories` filters and orders on the same data:

```sh
satori-v2 advisories --reported --last-word OTHER
satori-v2 advisories --reported --state triage --order-by last_comment_at
satori-v2 advisories --unreported
```

| Flag | Description |
| --- | --- |
| `--reported` / `--unreported` | Only the reports published to GitHub, or only the drafts |
| `--state STATE` | GitHub state, for example `triage`, `closed` or `open` |
| `--last-word {REPORTER\|OTHER\|NONE}` | Who commented last: you, someone else, or nobody |
| `--order-by {created_at\|reported_at\|last_comment_at}` | The date to order the list by |

The *Status* column shows the GitHub state. It shows `Published` for a report that has never been synced and `Unpublished` for a draft.
