Linux sandbox seccomp (#22815)

Co-authored-by: Gal Zahavi <38544478+galz10@users.noreply.github.com>
This commit is contained in:
David Pierce
2026-03-17 20:29:13 +00:00
committed by GitHub
parent 82d8680dcc
commit 2f90b46537
3 changed files with 99 additions and 11 deletions
@@ -163,11 +163,7 @@ export class FolderTrustDiscoveryService {
for (const event of Object.values(hooksConfig)) {
if (!Array.isArray(event)) continue;
for (const hook of event) {
if (
this.isRecord(hook) &&
// eslint-disable-next-line no-restricted-syntax
typeof hook['command'] === 'string'
) {
if (this.isRecord(hook) && typeof hook['command'] === 'string') {
hooks.add(hook['command']);
}
}