Every issue that fails a rule has an issue type and parameters. The issue type says what kind of problem it is. The parameters identify the issue, and waivers use them to cover it.

The following table lists each issue type, when it is reported, and its parameters.

Issue typeType valueReported whenParameters
FindingsfindingA finding fails the check, such as a vulnerability. Built-in templates only.id: The finding ID, such as a CVE or Xray ID.
Missing scan datamissing_scan_dataA scan has no data for the evaluated resource, and the policy has Fail on unscanned turned on. The evaluation adds this issue. A template never adds it.scan_type: public_vulnerability for SCA, contextual_analysis, or exposures.
status: not_scanned, scan_in_progress, scan_failed, or scan_incomplete.
Missing evidencemissing_evidenceEvidence that the rule requires is missing.predicate_type
Property checkproperty_checkA property of an evidence record fails a check.predicate_type, evidence_id, property, and expression. The property is what failed, and the expression is what is wrong with it.

A property check reports one issue per failed check of each evidence record. property names what failed, and expression says what is wrong with it, in a short phrase such as is missing or is empty. The message joins the two, for example, approverLogin is missing.

Findings come only from built-in templates, and the evaluation adds Missing scan data on its own. Custom templates report failures as Missing evidence or Property check. A waiver can't cover an issue with any other type: it is reported, but can't be waived.

How a Waiver Covers an Issue

A waiver with an Issues scope names one issue type and lists values for its parameters. The waiver covers an issue when the types match and, for each parameter the waiver lists, the issue has one of the listed values. A parameter the waiver doesn't list matches any value. A failed rule passes when waivers cover every issue it reported.

The following table shows what a waiver lists for each issue type.

Issue typeWhat the waiver lists
FindingsFinding IDs, up to 10. An ID matches the finding's own ID, its CVE, its Xray ID, or its Exposures ID.
Missing evidencePredicate types, up to 10.
Missing scan dataScan types and statuses. Both are optional. If one is empty, it covers all of its values.
Property checkProperties, expressions, predicate types, or any mix of them, with at least one value. A predicate type alone covers every property check of that evidence type.

Property Checks in Custom Templates

A custom template can report a failed check as a property check, so users can waive it. A custom template sets these values:

  • property: The evidence field that failed. For example, failedTests.
  • expression: A short phrase that says what is wrong. For example, is missing, is empty, or is not 0.
  • predicate_type: The evidence type that the template checks.
  • evidence_id: The ID of the evidence record that failed. It appears in the evaluation screens.

Users can then waive a property check by property, expression, or evidence type. For an example, see Custom Templates.

The parameters never hold a PR, commit, or Jira issue ID. So when two PRs fail the same way, the evidence record reports one issue, and one waiver covers both. For example:

  • A waiver for PRs approved only by their own committers uses the property approverLogin and the expression is also a committer login.
  • A waiver for unverified evidence of one type uses the property verified, the expression is false, and the predicate type of that evidence.

What's Next?

  • Custom Templates: write a check of your own, and what it must return.
  • Waivers: request a waiver for the issues that an evaluation reports.

Did this page help you?