@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 writes, so you can mix command-created entries with entries that you edit by hand. See 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 scans your repository, with PR scans 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 and 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.
When to dismiss a finding
Pull request commands complement your action policies.- 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.
How it works
When you post a command, Endor Labs takes the following steps.Acknowledge the comment
Validate the command
Match the finding
Commit the entry
Reply with the result

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.
Dismissing a finding doesn’t delete it. You can still see it in Endor Labs with the Dismissed filter. See View ignored findings for more information.

Dismiss a finding
Post a new comment on the pull request with the@endorlabs ignore command, the finding selector, and your explanation.
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.
Example help reply
Example help reply

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, replaceExplain 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.

Example How to dismiss a finding section
Example How to dismiss a finding section

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 afterignore and before any flag. Selectors are case-sensitive. Enclose a selector that contains spaces in double quotes.
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.

Command flags
Flags and reason values are case-sensitive. 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.
Example reply with one failed command
Example reply with one failed command

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.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.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.--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.
@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 theexpiration_date of the entry in the ignore file and push the change to the pull request branch.
Ignore file location
Endor Labs writes to an ignore file path from the Ignore file paths list in your developer workflow settings.- If the list is empty, Endor Labs writes to
.endorignore.yamlat 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.yamlwhen it’s in the list. Otherwise, it writes to the first path in the list.
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 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 runendorctl validate ignoreto 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.What does a reply look like when a command fails?
What does a reply look like when a command fails?


Why didn't Endor Labs react to my comment?
Why didn't Endor Labs react to my comment?
- 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.

Why does the reply say that dismissing findings is turned off?
Why does the reply say that dismissing findings is turned off?
Why does the reply say that I need write access?
Why does the reply say that I need write access?
Why is a finding already ignored but still blocking the pull request?
Why is a finding already ignored but still blocking the pull request?
Why does the reply say that the latest commit has no Endor Labs scan?
Why does the reply say that the latest commit has no Endor Labs scan?
Why does the reply say that the ignore file isn't valid?
Why does the reply say that the ignore file isn't valid?
Can I dismiss findings on a pull request from a fork?
Can I dismiss findings on a pull request from a fork?
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 to the repository’sCODEOWNERS file. Make your security team the owner. If the list is empty, add .endorignore.yaml.
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.
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 arisk-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-namewith the@pr/<number>suffix.