Add permission bit when writting the wrapper

This commit is contained in:
Gerard Ribugent 2026-01-22 15:05:34 +01:00
parent 320df87442
commit 315ab497cf
No known key found for this signature in database
GPG key ID: DCD0E41D4DDD2F80
2 changed files with 3 additions and 3 deletions

View file

@ -87,7 +87,7 @@ async function installWrapper (pathToCLI) {
wrapperContent[0] = `#!${process.argv[0]}`;
core.debug(`Writing updated wrapper to ${target}.`);
await fs.writeFile(target, wrapperContent.join('\n'));
await fs.writeFile(target, wrapperContent.join('\n'), { mode: 0o755 });
} catch (e) {
core.error(`Unable to copy ${source} to ${target}.`);
throw e;