> ## Documentation Index
> Fetch the complete documentation index at: https://docs.endorlabs.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Dismiss findings from pull request comments

> <Badge color="green">Beta</Badge> <br /> Reply to a GitHub Cloud pull request with an @endorlabs command to add an ignore entry and dismiss a finding without leaving GitHub.

Dismiss a finding from a GitHub Cloud pull request by posting an `@endorlabs ignore` comment. Endor Labs commits an entry to the repository's ignore file on the pull request branch, and the next PR scan no longer reports the finding.

The entry is the same one that [`endorctl ignore`](https://docs.endorlabs.com/developers-api/cli/commands/ignore) writes, so you can mix command-created entries with entries that you edit by hand. See [Dismiss findings using an ignore file](https://docs.endorlabs.com/inventory-insights/findings/dismiss-findings.md#dismiss-findings-using-an-ignore-file) for more information on how scans apply ignore files.

## Before you begin

Check the following requirements before you use pull request commands:

* The [GitHub Cloud App Pro](https://docs.endorlabs.com/setup-deployment/scm-integrations/github-app.md) scans your repository, with [PR scans](https://docs.endorlabs.com/scan/pr-scans/configure-pr-scans.md#configure-pr-scans-in-scm-apps) enabled. Commands don't work for PR scans that run from endorctl or GitHub Actions.
* Your GitHub organization administrator accepted the updated GitHub Cloud App Pro permissions. The app needs them to receive comments and add reactions. New installations include them, and GitHub prompts the administrator to accept them on existing installations.
* An administrator turned on [Allow ignore files to dismiss findings](https://docs.endorlabs.com/platform-administration/configure-system-settings.md#allow-ignore-files-to-dismiss-findings) and [Allow dismissing findings from pull request comments](https://docs.endorlabs.com/platform-administration/configure-system-settings.md#allow-dismissing-findings-from-pull-request-comments) in your tenant.
* You have the write, maintain, or admin role on the repository, or you're an owner of the GitHub organization. Developers don't need an Endor Labs account.
* The pull request is open and its branch is in the same repository. Commands don't run on pull requests from a fork.
* The latest commit on the pull request has a completed PR scan.

We recommend that a security reviewer approve every dismissal. See [Review dismissals with code owners](#review-dismissals-with-code-owners) to set up the review.

## When to dismiss a finding

Pull request commands complement your [action policies](https://docs.endorlabs.com/platform-administration/policies/action-policies.md).

* **Break the Build policies**: Use them for findings that must not merge.
* **Warn policies**: Use them for findings that you trust developers to fix or leave as they see fit. A warning doesn't block the merge, so developers don't need to dismiss it.
* **Pull request commands**: Use them for exceptions to a Break the Build policy, such as a false positive or an accepted risk.

When PR scans compare against a [baseline](https://docs.endorlabs.com/scan/sca/scanning-strategies.md#accelerating-preventative-control-adoption-with-ci-baselines), the PR comment reports only the findings that the pull request introduces. A false positive in new code or a new dependency is the most common reason to dismiss one.

> [!WARNING]
>
> Dismiss only what you need to. Every entry adds to the ignore file, and scans slow down as the ignore file grows.

## How it works

When you post a command, Endor Labs takes the following steps.

**1. Acknowledge the comment**

Endor Labs reacts to your comment with 👀.

**2. Validate the command**

Endor Labs checks the command syntax, the tenant settings, and your repository role.

**3. Match the finding**

Endor Labs matches the finding against the latest PR scan of the pull request.

**4. Commit the entry**

Endor Labs commits the entry to the ignore file on the pull request branch.

**5. Reply with the result**

Endor Labs replies with the result and replaces 👀 with 👍 on success or 👎 on failure.

> [!WARNING]
>
> Each dismissal adds a commit to your pull request. The commit starts a new Endor Labs scan and your other CI checks. If code owners own the ignore file, GitHub requests their review.

The new scan applies the ignore file, and the PR comment and check run refresh without the dismissed finding. When no blocking or warning policy violations remain, the PR comment shows a resolution note.

![PR comment note that all policy violations are resolved](https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/resolution-note.webp?fit=max\&auto=format\&n=9TGsmItoV6EqT079\&q=85\&s=075003c8327035d7b4f150fec94a1f37)

The following clip shows a developer posting the dismiss command from a finding in the PR comment.

<video autoPlay muted loop playsInline>
  <source src="https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/dismiss-a-finding.mp4?fit=max&auto=format&n=9TGsmItoV6EqT079&q=85&s=766a17504a9ccd0cefa2daf582222c63" type="video/mp4" />
</video>

Each entry records who posted the command. Its ID includes the pull request number, such as `endorignore-pr42-1`, so entries from different pull requests don't clash. A vulnerability that affects several dependencies gets one entry for each.

The entry merges into the target branch with the rest of your changes, so later scans of that branch also dismiss the finding. To limit a dismissal to one pull request, see [Dismiss a finding for this pull request only](#dismiss-a-finding-for-this-pull-request-only).

Dismissing a finding doesn't delete it. You can still see it in Endor Labs with the **Dismissed** filter. See [View ignored findings](https://docs.endorlabs.com/inventory-insights/findings/dismiss-findings.md#view-ignored-findings) for more information.

![Project findings in Endor Labs filtered to show dismissed findings](https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/dismissed-findings-filter.webp?fit=max\&auto=format\&n=9TGsmItoV6EqT079\&q=85\&s=fe2b35154664b08c3a8aa0716899a45c)

## Dismiss a finding

Post a new comment on the pull request with the `@endorlabs ignore` command, the finding selector, and your explanation.

```text theme={null}
@endorlabs ignore <finding-selector> -c "<your explanation>"
```

The following example dismisses a vulnerability and records why.

```text theme={null}
@endorlabs ignore CVE-2025-12345 -c "Input is validated upstream before it reaches this library."
```

The entry gets the reason `risk-accepted` unless you add `-r` with another reason. Always write an explanation, because reviewers and AppSec teams rely on it to understand the dismissal.

Post `@endorlabs help` to see the command syntax in the pull request. Endor Labs answers `help` even when dismissals are turned off, and then shows how an administrator can turn them on. To dismiss a finding from the command line instead, run [`endorctl ignore -i`](https://docs.endorlabs.com/developers-api/cli/commands/ignore).

> [accordion] Example help reply
>
> ![Endor Labs reply to the help command with the command syntax, flags, reasons, and an example](https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/help-reply.webp?fit=max\&auto=format\&n=9TGsmItoV6EqT079\&q=85\&s=8cbd3a24b4a5bbafc323e02ee4fcd4a9)

### Copy the command from the PR comment

Each finding that you can dismiss has a **Dismiss this finding** command in the PR comment. Copy it, replace `Explain why this finding is safe to ignore` with your explanation, and post it as a new comment. If you leave the placeholder, Endor Labs drops it and the entry has no comments.

![Finding in the PR comment with its Dismiss this finding command](https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/dismiss-this-finding.webp?fit=max\&auto=format\&n=9TGsmItoV6EqT079\&q=85\&s=8474bc3ba4d89e138e96111b39c77273)

The **How to dismiss a finding** section at the end of the PR comment explains how to post the commands and what the commit does.

> [accordion] Example How to dismiss a finding section
>
> ![How to dismiss a finding section of the PR comment with the command format, flags, and reasons](https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/how-to-dismiss-a-finding.webp?fit=max\&auto=format\&n=9TGsmItoV6EqT079\&q=85\&s=db3a6b16ac84ed8e9794673da7a869da)

> [!NOTE]
>
> A saved custom PR comment template doesn't show these sections, but you can still post the commands. See [Custom templates and dismiss commands](https://docs.endorlabs.com/scan/pr-scans/pr-comments.md#custom-templates-and-dismiss-commands) to restore them.

### Pull requests with too many findings

GitHub limits a comment to 65,536 characters. If the PR comment would exceed that limit, Endor Labs posts a short comment instead. It warns that the pull request has too many findings to display, shows the number of blocking and warning findings, and links to the findings in Endor Labs.

This comment has no per-finding commands. It points you to `@endorlabs help` and to editing the ignore file by hand. To post commands, copy each vulnerability ID or finding name from the findings in Endor Labs.

### Finding selectors

The selector comes directly after `ignore` and before any flag. Selectors are case-sensitive. Enclose a selector that contains spaces in double quotes.


&#x20; \- Finding\_type: Vulnerability
&#x20; Selector: Vulnerability ID or any of its aliases. A CVE ID also matches a finding recorded under its GHSA ID.
&#x20; Example: \`CVE-2025-12345\`
&#x20; \- Finding\_type: SAST
&#x20; Selector: The quoted key of the finding, from its \*\*Dismiss this finding\*\* command in the PR comment.
&#x20; Example: \`"\<sast-finding-key>"\`
&#x20; \- Finding\_type: Secrets and other findings
&#x20; Selector: The full finding name in quotes, ending in its \`ID #xxxxxx\` suffix. This is the \`finding\_name\` value of the ignore entry.
&#x20; Example: \`"\<finding-name> ID #xxxxxx"\`
&#x20;&#x20;

A finding name selector dismisses every finding on the pull request with that name. To dismiss one SAST finding, use the key from that finding's command. Each SAST finding with a dismiss command also shows a **Reported by** line that names the policy that reported it.

![SAST finding in the PR comment with a dismiss command that uses the finding key](https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/sast-dismiss-command.webp?fit=max\&auto=format\&n=9TGsmItoV6EqT079\&q=85\&s=5fba2c852be73d8f940cee46b5a6fa8a)

The selector must match a finding from the latest PR scan. If you push new commits, copy the selector again from the refreshed PR comment.

### Command flags

Flags and reason values are case-sensitive.


&#x20; \- Flag: \`-c\`, \`--comments\`
&#x20; Description: Explanation recorded in the ignore entry, up to 256 characters. If the text starts with \`-\`, use the form \`--comments="\<text>"\`.
&#x20; \- Flag: \`--expiration-date\`
&#x20; Description: Date when the entry expires, in \`YYYY-MM-DD\` format. The date must be after today. Without this flag, the entry never expires.
&#x20; \- Flag: \`--expire-if-fix-available\`
&#x20; Description: Expire the entry when a fix becomes available. Use it only for findings without a fix. See \[Dismiss a finding until a fix is available]\(#dismiss-a-finding-until-a-fix-is-available).
&#x20; \- Flag: \`--parent-name\`
&#x20; Description: Limit the entry to packages whose name contains this value. Works for dependency findings only. Without the flag, a dependency entry applies to the finding's own package without its version, such as \`go://github.com/org/repo\`. See \[Dismiss a finding for this pull request only]\(#dismiss-a-finding-for-this-pull-request-only).
&#x20; \- Flag: \`-r\`, \`--reason\`
&#x20; Description: Reason for dismissing the finding. Use one of \`false-positive\`, \`risk-accepted\`, \`in-triage\`, \`resolved\`, or \`other\`. The default is \`risk-accepted\`.
&#x20;&#x20;

Pull request commands don't support the `--path`, `--username`, `--finding-uuid`, `--prefix`, and `--interactive` flags of `endorctl ignore`. Endor Labs sets the entry ID, file path, and username, and a comment can't prompt for input.

### Dismiss multiple findings

To dismiss several findings at once, put each command on its own line in one comment. Endor Labs adds all the entries in one commit.

We recommend that you put all the dismissals for a pull request in one comment, so that the pull request gets one commit and one rescan.

* Start every line with `@endorlabs ignore`, beginning with the first line.
* Give one finding per line.
* Leave out any other text, and don't wrap the commands in a code block. Blank lines are fine.

```text theme={null}
@endorlabs ignore CVE-2025-12345 -r false-positive -c "Not reachable from our code."
@endorlabs ignore GHSA-abcd-1234-efgh -c "Accepted until the next upgrade." --expiration-date 2026-12-31
```

The following clip shows the reply to a comment that dismisses five findings at once.

<video autoPlay muted loop playsInline>
  <source src="https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/dismiss-multiple-findings.mp4?fit=max&auto=format&n=9TGsmItoV6EqT079&q=85&s=402d5e260af8f4f2aef9924584f5bf9b" type="video/mp4" />
</video>

Endor Labs checks the syntax of every line before it runs anything. If one line has a syntax error, such as an unknown flag or a bad date, nothing runs. After that, each command runs on its own. A command that can't dismiss its finding gets its own explanation in the reply, and the others still go into the commit. Endor Labs reacts with 👎 if any command fails.

> [accordion] Example reply with one failed command
>
> ![Endor Labs reply with one dismissed finding and one command whose ID doesn't match a finding](https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/partial-batch-reply.webp?fit=max\&auto=format\&n=9TGsmItoV6EqT079\&q=85\&s=0049669757f887711dc60ab78480292a)

## Use cases

In each example, copy the selector from the PR comment and write your own explanation.

### Dismiss a false positive

The finding is in code that never ships, or the vulnerable code path can't be reached.

```text theme={null}
@endorlabs ignore GHSA-w73w-5m7g-f7qc -r false-positive -c "Only used in integration tests. Not shipped to production."
```

The entry never expires, so the finding stays dismissed on the target branch after you merge.

### Accept a risk until a date

Your team accepts the risk for now and plans to upgrade later. Scans report the finding again after the expiration date.

```text theme={null}
@endorlabs ignore GHSA-c3h9-896r-86jm -c "Upgrade planned for the Q1 release." --expiration-date 2027-03-31
```

### Dismiss a finding until a fix is available

The vulnerability has no fixed version yet. The entry expires once a fix is published, and scans report the finding again so that you can upgrade.

```text theme={null}
@endorlabs ignore GHSA-3xh2-74w9-5vxm -c "No fixed version yet. Revisit when one ships." --expire-if-fix-available
```

Don't use this flag on a finding with the **Fix Available** tag. The entry expires as soon as Endor Labs writes it, and the finding keeps blocking. Upgrade the dependency or use `--expiration-date` instead.

### Dismiss a finding for this pull request only

You need to merge a hotfix now but still want the finding reported on the target branch. Add `--parent-name` with the package name from the **Package** field of the finding in the PR comment, such as `go://github.com/org/repo@pr/12`.

```text theme={null}
@endorlabs ignore GHSA-w67g-5rqw-f597 -c "Hotfix release. Tracked in SEC-123." --parent-name "go://github.com/org/repo@pr/12"
```

After you merge, scans of the target branch report the finding again. Delete the entry from the ignore file when you fix the finding. To keep a scoped dismissal after the merge, drop the `@pr/<number>` suffix.

### Extend an expired dismissal

An expired entry no longer dismisses its finding. Posting the same command again replies that the finding is already ignored. Change the `expiration_date` of the entry in the ignore file and push the change to the pull request branch.

```yaml theme={null}
  - id: endorignore-pr12-2
    ...
    reason: risk-accepted
    expiration_date: 2027-06-30
```

## Ignore file location

Endor Labs writes to an ignore file path from the **Ignore file paths** list in your [developer workflow settings](https://docs.endorlabs.com/platform-administration/configure-system-settings.md#allow-ignore-files-to-dismiss-findings).

* If the list is empty, Endor Labs writes to `.endorignore.yaml` at the repository root.
* If the list has one path, Endor Labs writes to that path.
* If the list has more than one path, Endor Labs writes to `.endorignore.yaml` when it's in the list. Otherwise, it writes to the first path in the list.

Endor Labs creates the file if it doesn't exist and appends the entry if it does. The command supports ignore files in YAML format only. Convert a plain-text ignore file to YAML before you use pull request commands.

## Limitations of pull request commands

The following limitations apply:

* Pull request commands are available for GitHub Cloud with GitHub Cloud App Pro. GitHub Enterprise Server, GitLab, Azure DevOps, and Bitbucket aren't supported.
* You can't dismiss malware findings from a pull request. Use an [exception policy](https://docs.endorlabs.com/platform-administration/policies/exception-policies.md) instead.
* Endor Labs only processes new comments. Editing a comment to add a command doesn't work.
* There's no undo command. To restore a dismissed finding, delete its entry from the ignore file and push the change.
* There's no bulk dismissal by severity or for a whole pull request. Post one command per finding.
* If two pull requests add entries to the same ignore file, the second one to merge can have a merge conflict. Keep every entry from both sides complete, in one `ignore:` list. Then run [`endorctl validate ignore`](https://docs.endorlabs.com/developers-api/cli/commands/validate/ignore) to check the file.

## Troubleshoot pull request commands

Endor Labs replies to every command that it processes. Each reply says what went wrong and whether anything changed. Where it can, the reply suggests a corrected command to post.

> [accordion] What does a reply look like when a command fails?
>
> The reply names the problem, confirms that nothing changed, and suggests a corrected command where it can.
>
> ![Endor Labs reply to a command with an invalid reason, with a corrected command to post](https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/invalid-reason-reply.webp?fit=max\&auto=format\&n=9TGsmItoV6EqT079\&q=85\&s=f730f3cee119cff506df2230af745ba4)
>
> ![Endor Labs reply asking you to run the command again after the scan finishes](https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/no-completed-scan-reply.webp?fit=max\&auto=format\&n=9TGsmItoV6EqT079\&q=85\&s=89c6467483c66051d43301d454857ba7)

> [accordion] Why didn't Endor Labs react to my comment?
>
> If Endor Labs doesn't add 👀 or reply to your comment, it never received the command. Check the following conditions:
>
> * Your GitHub organization administrator accepted the updated GitHub Cloud App Pro permissions. Until then, GitHub doesn't send comments to Endor Labs.
> * The GitHub Cloud App Pro is installed on the repository. If the installation covers only selected repositories, add this one.
> * The comment starts with `@endorlabs`, and the commands aren't inside a code block.
> * It's a new comment, not an edited one.
>
> In the following example, the first command got no reaction because the GitHub Cloud App Pro didn't have the permissions it needs. After the permissions were fixed, the same command got a 👍.
>
> ![Two help commands on a pull request, the first with no reaction and the second with a thumbs-up](https://mintcdn.com/endorlabs-b4795f4f/9TGsmItoV6EqT079/images/scan/pr-scans/dismiss-findings-from-pr-comments/no-reaction-to-command.webp?fit=max\&auto=format\&n=9TGsmItoV6EqT079\&q=85\&s=8ee61761c66cde199235475a8c92b794)

> [accordion] Why does the reply say that dismissing findings is turned off?
>
> An administrator hasn't turned on both settings. Ask them to turn on **Allow ignore files to dismiss findings** and **Allow dismissing findings from pull request comments** in **Settings** > **SYSTEM SETTINGS** > **Developer Workflows**.

> [accordion] Why does the reply say that I need write access?
>
> Your repository role is triage or read. Ask a person with the write, maintain, or admin role to post the command, or create an [exception policy](https://docs.endorlabs.com/platform-administration/policies/exception-policies.md) in Endor Labs.

> [accordion] Why is a finding already ignored but still blocking the pull request?
>
> An existing ignore entry covers the finding, but the entry has expired. Posting the command again doesn't help. See [Extend an expired dismissal](#extend-an-expired-dismissal) to update the entry.

> [accordion] Why does the reply say that the latest commit has no Endor Labs scan?
>
> Endor Labs skipped or didn't run the scan of the latest commit. Push another commit or re-run the Endor Labs check, then post the command again after the scan finishes.

> [accordion] Why does the reply say that the ignore file isn't valid?
>
> The ignore file on the pull request branch has a YAML syntax error or is in plain-text format. Fix the syntax or convert the file to YAML, then post the command again.

> [accordion] Can I dismiss findings on a pull request from a fork?
>
> No. Pull request commands don't run on pull requests from a fork. Add the entry to the ignore file by hand, or create an [exception policy](https://docs.endorlabs.com/platform-administration/policies/exception-policies.md) in Endor Labs.

## Review dismissals with code owners

Anyone with write access to the repository can dismiss a finding from a pull request. We recommend that your security team review every dismissal before it reaches the target branch.

To set up the review, add every path from **Ignore file paths** in your [developer workflow settings](https://docs.endorlabs.com/platform-administration/configure-system-settings.md#allow-ignore-files-to-dismiss-findings) to the repository's `CODEOWNERS` file. Make your security team the owner. If the list is empty, add `.endorignore.yaml`.

```text theme={null}
# Endor Labs ignore files need security approval
/.endorignore.yaml @your-org/security
/services/payments/endorignore.yaml @your-org/security
```

A `CODEOWNERS` entry only requests a review from the owner. To make the approval required, turn on **Require review from Code Owners** in the branch protection rule or ruleset for the target branch. For more information, refer to [About code owners](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/customizing-your-repository/about-code-owners).

With this setup, the pull request waits for a code owner to approve the ignore file change before it can merge.

When you review a dismissal, check the following points:

* The reason fits the explanation. For example, an unreachable code path is a `false-positive`, not a `risk-accepted`.
* The explanation says why the finding is safe, not only that it is.
* An accepted risk has an expiration date or a tracking ticket.
* A dismissal meant for this pull request only uses `--parent-name` with the `@pr/<number>` suffix.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.