Ignoring findings
Sometimes a finding is correct but acceptable. Your compliance team may have cleared a license for this use, or a vulnerable code path may never run in your product. In those cases you ignore the finding.
An ignore made with FossID is a documented exception:
- it always has a reason;
- it always has an expiry date, after which the finding comes back;
- vulnerability ignores record a VEX analysis (Vulnerability Exploitability eXchange, the industry standard for stating why a vulnerability does or doesn't affect you).
Ignores are stored in .fossid/ignores.yaml in your workspace folder. Commit the file so your whole team shares the same decisions, and use Governance to require review of changes.
Ignore or exclude? Ignoring hides one specific finding for a limited time. Excluding a file keeps it out of scanning, permanently. Prefer ignoring. It keeps a record of what you accepted and why.
Ignoring a finding from the editor
Put the cursor on the finding and press Ctrl+. (Cmd+. on macOS), or right-click the finding in the Problems panel. Choose Ignore: <kind> <identifier>…, for example Ignore: license GPL-3.0-only….
If a finding has more than one identity, you get one action per identity. For example, a license found through a copied snippet offers both Ignore: license … and Ignore: snippet …, and a component with several named vulnerabilities offers one Ignore: vuln … per vulnerability.
FossID then asks for the details.
For a license, snippet or component finding:
- Why is it ignored? A reason is required. For example: Cleared by OSPO exception, see OSPO-142.
- How many days until this ignore expires? Choose 30 days (default), 90 days, 1 year, or Custom number of days… (1 to 36500).
For a vulnerability:
- VEX state: how the vulnerability relates to your project:
not_affected: your project is not affected;false_positive: the finding is wrong;in_triage: you are still investigating;- or Skip — record rationale only.
- Justification (required for
not_affected): why you are not affected. For examplecode_not_reachable,code_not_present,requires_configurationorprotected_at_runtime. - Planned response(s) (optional, multi-select):
can_not_fix,will_not_fix,update,rollback,workaround_available. - Why is this vulnerability acceptable? A rationale is required.
- Expiry. For
in_triage, 7 days is suggested.
Press Esc at any step to cancel without writing anything. Clicking outside a list of choices, such as the expiry list, also cancels; the text boxes stay open when you click away.
When the ignore is saved, the finding disappears immediately. For six seconds the status bar shows FossID: ignored <kind> <id> until <date>. Click it to open ignores.yaml.
Ignoring a finding that already has an ignore, including an expired one, replaces that entry. The new reason, expiry and created date take the place of the old ones. To keep the old entry and only give it a new expiry, renew it in the Ignores editor instead.
Ignoring more broadly: Ignore a Finding…
FossID: Ignore a Finding… in the Command Palette appears after you sign in. It does the same, but lets you widen the ignore:
- Select a finding to ignore. The list shows findings in the active file, or in the whole workspace if no file is open.
- Path scope: This file, This folder and everything under it, or Anywhere in the repo.
- Kind scope: This kind only or Any kind.
- Identifier scope: This one (for example this CVE) or Any of that kind.
Each option shows how many of the findings in the list it would cover. Then you enter the reason and expiry as above.
Managing ignores: the Ignores editor
Open the FossID side bar and select Manage Ignores in the Ignores view. The Ignores view appears after you sign in; before that, the side bar shows only Setup.
The Ignores tab lists every active ignore, grouped into Vulnerabilities, Licenses, Snippets, Components, and Wildcards & other. Use the Filter box to search by identifier, path, kind or VEX state.
For each ignore you can:
- Edit the rationale in place. Press
Enteror click away to save, orEscto undo. The rationale can't be empty. - Change the expiry by entering a number of days from today (1 to 36500). Hover to see the exact expiry and creation dates.
- See what it covers. Suppresses shows how many findings it currently hides in the files scanned so far. Every ignore has one, wildcard or not.
- Edit the VEX analysis of a vulnerability. Expand the row to change VEX State, Justification and Response.
- Reveal in ignores.yaml or Remove ignore from the
⋯menu. Removing takes effect immediately and the findings reappear.
Expired ignores (N) opens a second tab with lapsed ignores. Renew one by giving it a new number of days, or remove it.
How ignores behave
- Expiry. An ignore applies up to and including its expiry date (UTC). The finding comes back at the next UTC midnight, even if the editor is idle.
- Any match hides the finding. If any active ignore covers a finding, it is hidden. There is no priority between ignores.
- Dependencies with several problems. Ignoring one vulnerability or license of a dependency leaves its other vulnerabilities and licenses visible.
- Hidden everywhere. Ignored findings disappear from the Problems panel, from the editor, and from manifest annotations.
- Known vulnerabilities in a matched component can be ignored one vulnerability at a time. FossID writes the ignore with the component as its path (see The ignores file). Vulnerabilities FossID's knowledge base hasn't named can't be ignored; turn the rule off in Detection rules if they are too noisy.
The ignores file
You can also edit .fossid/ignores.yaml by hand. Changes take effect as soon as you save, and after a git checkout or pull.
version: 1
ignores:
- finding: '**:license:LGPL-2.1-only'
reason: 'Cleared by OSPO exception, see OSPO-142.'
expires: 2026-12-31
created: 2026-09-28
- finding: 'src/vendor/parser.c:vuln:CVE-2024-12345'
analysis:
state: 'not_affected'
justification: 'code_not_reachable'
response: ['will_not_fix']
detail: 'The vulnerable code path is compiled out of our build.'
expires: 2026-10-28
created: 2026-09-28
FossID writes these fields:
| Field | Required | Meaning |
|---|---|---|
finding | yes | What the ignore covers, as path:kind:identifier (see below). |
reason | no | Why the finding is acceptable. FossID always records one for license, snippet and component ignores. |
analysis | no | The VEX analysis of a vulnerability ignore: state, justification (FossID always records one when state is not_affected), response (list) and detail (the rationale). FossID always records one for vulnerability ignores. |
expires | yes | Last day the ignore applies, as YYYY-MM-DD (UTC). FossID's own prompts allow at most 36500 days from today, but any later date you write by hand is accepted. |
created | no | Date the ignore was added. FossID fills it in. |
The finding key has three parts, separated by colons:
-
path: a file, folder or pattern using
.gitignoresyntax, relative to the workspace folder. For examplesrc/vendor/parser.c,src/vendor/**, or**for anywhere. For a finding about a whole component, the path is the component, asname@version: for exampleopenssl/openssl@1.0.1j:vuln:CVE-2021-1234.fossid auditreads the same key, so an ignore that you make in the editor also holds in CI. -
kind:
license,vuln,snippet,component, or*for any kind. -
identifier:
- an SPDX license ID for
license; - a CVE ID for
vuln; - a snippet ID for
snippet; name@versionforcomponent;- or
*.
A bare
*means any value. A*inside a value is not a wildcard.CVE-2024-*matches no finding, in the editor and in CI. To cover every vulnerability in a path, use*as the identifier. - an SPDX license ID for
How the key matches:
- All three parts are case-sensitive:
Src/main.cdoesn't matchsrc/main.c, andgpl-3.0-onlydoesn't matchGPL-3.0-only. - The path follows
.gitignorerules. A plain file name such asmain.cmatches that name in any folder. A leading/, as in/main.c, matches only at the top of the workspace folder. Don't start the path with./:./main.cmatches nothing.
VEX values:
state:not_affected,false_positive,in_triage,exploitable,resolved,resolved_with_pedigree.justification:code_not_present,code_not_reachable,requires_configuration,requires_dependency,requires_environment,protected_by_compiler,protected_at_runtime,protected_at_perimeter,protected_by_mitigating_control.response:can_not_fix,will_not_fix,update,rollback,workaround_available.
Wildcard entries get a Suppresses N finding(s) line above them in the editor, so you can see how much they cover. It counts findings in the files scanned so far, and shows Suppresses 0 findings when a wildcard covers none of them. Entries without a wildcard get no line.
Tip: Install the YAML extension by Red Hat to get completion and hover help for
ignores.yaml, based on the schema FossID ships. The schema is part of the extension, not your workspace.
When FossID writes the file, it sorts the entries and uses a consistent layout, so reviews and git blame stay clean. Comments you add by hand are not kept when FossID next writes the file.
When the ignores file has problems
FossID checks ignores.yaml as you type and reports problems in the Problems panel. While the file has unsaved changes, the problems describe the file as it will be once you save it. What applies is still the saved file, so for example an unsaved merge-conflict marker is reported as stopping all ignores, while the saved ignores keep applying until you save.
| Problem | Severity | Effect |
|---|---|---|
Broken file: invalid YAML, merge-conflict markers, or a version that isn't a whole number | Error | No ignores apply until the file is fixed. Every finding is shown. |
Unrecognized content: unknown fields, an entry without finding or expires, or a version other than 1 | Error | Entries that are otherwise valid still apply, but FossID won't edit the file until you fix it. Editing it would drop what it doesn't recognize. |
Questionable value: an invalid date, a finding key that can't match, a duplicate entry, or an unknown VEX value | Warning | An entry with an invalid expires date or a finding key that can't match never applies. A key can't match when it isn't path:kind:identifier, or when a part is empty. It can't match when the kind isn't license, vuln, snippet, component or *. It also can't match when the identifier has a * inside it. The other warnings don't change what is hidden. Every copy of a duplicate entry still applies; FossID keeps only one when it next writes that finding's ignore. |
FossID also notifies you when the file becomes broken, gets merge conflicts or has unrecognized content, with Open File (and Resolve Automatically for merge conflicts). It notifies you again only when the problem changes to another of these three, or after the file was fixed in between. Further edits that leave the same kind of problem don't notify you again.
If you try to add or change an ignore while the file is broken, has unrecognized content, or has unsaved changes open in an editor, FossID writes nothing and tells you what to fix first. When you ignore a finding, this check happens only after you have answered the reason and expiry prompts, and what you entered is not kept, so fix or save the file first. For unrecognized content, the message refers to the bundled schema (schemas/ignores.schema.json). That file is inside the extension, not your workspace; the table and example in The ignores file describe the same format.
Merge conflicts
Two branches often add ignores at the same time. When ignores.yaml has merge conflicts, FossID offers to resolve them for you:
- from the notification (Resolve Automatically);
- from the banner in the Ignores editor (Resolve automatically);
- from the Quick Fix on the conflict marker: FossID: resolve merge conflict (merge both sides).
FossID keeps every ignore from both sides. When both sides changed the same entry, it keeps one of them:
- the one with a valid expiry date, if the other's isn't valid;
- otherwise, the one with the later expiry;
- if the expiries are the same, the one with the later
createddate; - if those are the same too, the one from your current branch.
It first shows you a preview of the merged file and a summary, then asks you to Apply. The result is a normal edit, so you can undo it.