Skip to content

Commit

Permalink
allow filesystem entitlements by default
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <[email protected]>
  • Loading branch information
crazy-max committed Nov 22, 2024
1 parent 1417204 commit 266c359
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,8 @@ async function getBakeArgs(inputs: Inputs, definition: BakeDefinition, toolkit:
args.push(inputs.source);
}
if (await toolkit.buildx.versionSatisfies('>=0.17.0')) {
if (inputs.allow.length > 0) {
args.push('--allow', inputs.allow.join(','));
}
inputs.allow.push('fs=/'); // allow filesystem entitlements by default
args.push('--allow', inputs.allow.join(','));
}
await Util.asyncForEach(inputs.files, async file => {
args.push('--file', file);
Expand Down

0 comments on commit 266c359

Please sign in to comment.