Skip to content

Composable attributes for provenance attestation not correctly handled #2936

@crazy-max

Description

@crazy-max

relates to: https://github.com/docker/actions-toolkit/actions/runs/12888049135/job/35932056137?pr=572#step:2:3060

target "default" {
  attest = [
    "type=provenance,mode=max",
    "type=sbom,disabled=true"
  ]
}
$ docker buildx bake --print
{
  "group": {
    "default": {
      "targets": [
        "default"
      ]
    }
  },
  "target": {
    "default": {
      "attest": [
        {
          "type": "provenance"
        },
        {
          "disabled": true,
          "type": "sbom"
        }
      ],
      "context": ".",
      "dockerfile": "Dockerfile"
    }
  }
}

"mode": "max" is missing in the output.

Also relates to #2848 (comment) to add tests.

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions