diff --git a/dist/main/index.js b/dist/main/index.js index cf4deb5b..55bb6a2e 100644 --- a/dist/main/index.js +++ b/dist/main/index.js @@ -7999,7 +7999,7 @@ async function isTrustedUser() { core.debug(`Trusted users: ${trustedUsers}`); core.debug(`Trusted groups: ${trustedGroups}`); // Chech if Nix is installed in single-user mode. - let isStoreWritable = isWritable('/nix/store'); + let isStoreWritable = await isWritable('/nix/store'); core.debug(`Is store writable: ${isStoreWritable}`); return isStoreWritable || trustedUsers.includes(user) diff --git a/src/main.ts b/src/main.ts index 95255a59..f093d101 100644 --- a/src/main.ts +++ b/src/main.ts @@ -319,7 +319,7 @@ async function isTrustedUser(): Promise { core.debug(`Trusted groups: ${trustedGroups}`); // Chech if Nix is installed in single-user mode. - let isStoreWritable = isWritable('/nix/store'); + let isStoreWritable = await isWritable('/nix/store'); core.debug(`Is store writable: ${isStoreWritable}`); return isStoreWritable