Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions .github/workflows/bake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -612,9 +612,8 @@ jobs:
await core.group(`Set bake overrides`, async () => {
bakeOverrides.push('*.tags=');
if (GitHub.context.payload.repository?.private ?? false) {
// if this is a private repository, we set the default provenance
// attributes being set in buildx: https://github.com/docker/buildx/blob/fb27e3f919dcbf614d7126b10c2bc2d0b1927eb6/build/build.go#L603
bakeOverrides.push('*.attest=type=provenance,mode=min,inline-only=true,version=v1');
// if this is a private repository, we set min provenance mode
bakeOverrides.push('*.attest=type=provenance,mode=min,version=v1');
} else {
// for a public repository, we set max provenance mode
bakeOverrides.push('*.attest=type=provenance,mode=max,version=v1');
Expand Down
5 changes: 2 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,8 @@ jobs:
core.setOutput('labels', inpLabels.join('\n'));

if (GitHub.context.payload.repository?.private ?? false) {
// if this is a private repository, we set the default provenance
// attributes being set in buildx: https://github.com/docker/buildx/blob/fb27e3f919dcbf614d7126b10c2bc2d0b1927eb6/build/build.go#L603
core.setOutput('provenance', 'mode=min,inline-only=true,version=v1');
// if this is a private repository, we set min provenance mode
core.setOutput('provenance', 'mode=min,version=v1');
} else {
// for a public repository, we set max provenance mode
core.setOutput('provenance', 'mode=max,version=v1');
Expand Down
Loading