Phase 1: Add ESLint/Prettier config + baseline auto-fixes

This commit is contained in:
Krystie
2026-03-22 11:00:25 +01:00
parent 41a0cdee7e
commit e2c67a8fe8
90 changed files with 4008 additions and 3066 deletions

View File

@@ -39,7 +39,7 @@ class DockerSecurity {
trustedDigests: {},
verificationMode: VERIFICATION_MODE,
allowUnverified: true,
updateTrustedOnPull: true
updateTrustedOnPull: true,
};
}
@@ -124,7 +124,7 @@ class DockerSecurity {
method: 'GET',
headers: {
'Accept': 'application/vnd.docker.distribution.manifest.v2+json',
}
},
};
if (token) {
@@ -198,7 +198,7 @@ class DockerSecurity {
imageName,
actualDigest,
trustedDigest: trustedDigest || null,
action: 'unknown'
action: 'unknown',
};
if (!trustedDigest) {
@@ -280,7 +280,7 @@ class DockerSecurity {
imageName,
action: this.mode === 'permissive' ? 'accept' : 'warn',
error: error.message,
reason: `Verification error (${this.mode} mode)`
reason: `Verification error (${this.mode} mode)`,
};
}
}
@@ -335,7 +335,7 @@ class DockerSecurity {
mode: this.mode,
trustedImagesCount: Object.keys(this.config.trustedDigests).length,
configFile: SECURITY_CONFIG_FILE,
updateTrustedOnPull: this.config.updateTrustedOnPull
updateTrustedOnPull: this.config.updateTrustedOnPull,
};
}
}