Skip to content

Unable to Create Xray Ignore Rule Linked to Build #337

@JArtur79

Description

@JArtur79

Hello,

could someone be so kind as to help me create a simple Xray ignore rule linked to a build?

I have already tried several variants, but unfortunately I always get this error message.

I would be very grateful for working examples of an ignore rule linked to a build, or any advice on what might be wrong.

Thank you!

Error message

xray_ignore_rule.test_ignore_rule: Creating...

│ Error: Unable to Create Resource
│
│   with xray_ignore_rule.test_ignore_rule,
│   on xxxxxxx-ignore-rules.tf line 1, in resource "xray_ignore_rule" "test_ignore_rule":
│    1: resource "xray_ignore_rule" "test_ignore_rule" {
│
│ An unexpected error occurred while creating the resource update request. Please report this issue to the provider developers.
│
│ Error:

Here is an example of my current configuration:

resource "xray_ignore_rule" "test_ignore_rule" {
  notes           = "xx not in xxxxx used"
  vulnerabilities = ["any"]

  build {
    name    = "build://[xxxx-build-info]/xxxx/xxxxxxx/xxxxx/xxx-xxxxxx"
    version = "1764800"
  }
}
OpenTofu used the selected providers to generate the following execution plan. Resource actions are indicated with the following symbols:
  + create

OpenTofu will perform the following actions:

  # xray_ignore_rule.test_ignore_rule will be created
  + resource "xray_ignore_rule" "test_ignore_rule" {
      + author          = (known after apply)
      + created         = (known after apply)
      + id              = (known after apply)
      + is_expired      = (known after apply)
      + notes           = "xx not in xxxxxxx used"
      + vulnerabilities = [
          + "any",
        ]

      + build {
          + name    = "build://[xxxx-build-info]/xxxx/xxxxxxx/xxxxx/xxx-xxxxxx"
          + version = "1764800"
        }
    }

Plan: 1 to add, 0 to change, 0 to destroy.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions