Skip to content

Commit a441017

Browse files
committed
don't inline provenance in min mode
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
1 parent 478a43d commit a441017

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

.github/workflows/bake.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,9 +612,8 @@ jobs:
612612
await core.group(`Set bake overrides`, async () => {
613613
bakeOverrides.push('*.tags=');
614614
if (GitHub.context.payload.repository?.private ?? false) {
615-
// if this is a private repository, we set the default provenance
616-
// attributes being set in buildx: https://github.com/docker/buildx/blob/fb27e3f919dcbf614d7126b10c2bc2d0b1927eb6/build/build.go#L603
617-
bakeOverrides.push('*.attest=type=provenance,mode=min,inline-only=true,version=v1');
615+
// if this is a private repository, we set min provenance mode
616+
bakeOverrides.push('*.attest=type=provenance,mode=min,version=v1');
618617
} else {
619618
// for a public repository, we set max provenance mode
620619
bakeOverrides.push('*.attest=type=provenance,mode=max,version=v1');

.github/workflows/build.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -535,9 +535,8 @@ jobs:
535535
core.setOutput('labels', inpLabels.join('\n'));
536536
537537
if (GitHub.context.payload.repository?.private ?? false) {
538-
// if this is a private repository, we set the default provenance
539-
// attributes being set in buildx: https://github.com/docker/buildx/blob/fb27e3f919dcbf614d7126b10c2bc2d0b1927eb6/build/build.go#L603
540-
core.setOutput('provenance', 'mode=min,inline-only=true,version=v1');
538+
// if this is a private repository, we set min provenance mode
539+
core.setOutput('provenance', 'mode=min,version=v1');
541540
} else {
542541
// for a public repository, we set max provenance mode
543542
core.setOutput('provenance', 'mode=max,version=v1');

0 commit comments

Comments
 (0)