Skip to content

Commit 129aeb9

Browse files
authored
Merge pull request #89 from crazy-max/provenance-inline
don't inline provenance in min mode
2 parents 7256a7a + a441017 commit 129aeb9

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
@@ -657,9 +657,8 @@ jobs:
657657
await core.group(`Set bake overrides`, async () => {
658658
bakeOverrides.push('*.tags=');
659659
if (GitHub.context.payload.repository?.private ?? false) {
660-
// if this is a private repository, we set the default provenance
661-
// attributes being set in buildx: https://github.com/docker/buildx/blob/fb27e3f919dcbf614d7126b10c2bc2d0b1927eb6/build/build.go#L603
662-
bakeOverrides.push('*.attest=type=provenance,mode=min,inline-only=true,version=v1');
660+
// if this is a private repository, we set min provenance mode
661+
bakeOverrides.push('*.attest=type=provenance,mode=min,version=v1');
663662
} else {
664663
// for a public repository, we set max provenance mode
665664
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)