Skip to content

Conversation

@crazy-max
Copy link
Member

@crazy-max crazy-max commented Nov 26, 2025

fixes #349

cc @marverix

@crazy-max crazy-max force-pushed the check-attest-definition branch 3 times, most recently from 0d03cad to 03efd0a Compare November 26, 2025 11:24
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max force-pushed the check-attest-definition branch from 03efd0a to 597dc07 Compare November 26, 2025 11:30
Comment on lines +1 to +17
group "default" {
targets = ["t1", "t2", "t3"]
}

target "t1" {
target = "t1"
}

target "t2" {
target = "t2"
attest = ["type=provenance,mode=min"]
}

target "t3" {
target = "t3"
attest = ["type=sbom"]
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested in https://github.com/docker/bake-action/actions/runs/19702226697/job/56441006449#step:4:234

  {
    "group": {
      "default": {
        "targets": [
          "t1",
          "t2",
          "t3"
        ]
      }
    },
    "target": {
      "t1": {
        "attest": [
          {
            "builder-id": "https://github.com/docker/bake-action/actions/runs/19702226697/attempts/1",
            "mode": "max",
            "type": "provenance"
          }
        ],
        "context": ".",
        "dockerfile": "Dockerfile",
        "target": "t1"
      },
      "t2": {
        "attest": [
          {
            "mode": "min",
            "type": "provenance"
          }
        ],
        "context": ".",
        "dockerfile": "Dockerfile",
        "target": "t2"
      },
      "t3": {
        "attest": [
          {
            "type": "sbom"
          },
          {
            "builder-id": "https://github.com/docker/bake-action/actions/runs/19702226697/attempts/1",
            "mode": "max",
            "type": "provenance"
          }
        ],
        "context": ".",
        "dockerfile": "Dockerfile",
        "target": "t3"
      }
    }
  }

@crazy-max crazy-max requested a review from tonistiigi November 26, 2025 11:33
@crazy-max crazy-max marked this pull request as ready for review November 26, 2025 11:33
@crazy-max crazy-max merged commit d14785b into docker:master Nov 27, 2025
56 checks passed
@crazy-max crazy-max deleted the check-attest-definition branch November 27, 2025 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bake-action adds provenance mode=min even if in docker-bake file provenance is set to max

2 participants