We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00b1e4b commit 9900b70Copy full SHA for 9900b70
2 files changed
.github/workflows/fod.yml
@@ -107,6 +107,7 @@ jobs:
107
PACKAGE_EXTRA_OPTS: "-bt none"
108
SOURCE_DIR: ${{env.DEFAULT_SOURCE_DIR}}
109
DO_POLICY_CHECK: false # we will do this later afer SCA and DAST scan
110
+ DO_EXPORT: true
111
112
FoD-OSS-Scan:
113
runs-on: ubuntu-latest
src/utils/image.utils.ts
@@ -27,7 +27,7 @@ export abstract class ImageUtils {
27
const outputFile = file.replace(/\.[^/.]+$/, `.${type}`);
28
await sharp(file)
29
.resize(width, height)
30
- .toFormat(type)
+ .toFormat(type as keyof sharp.FormatEnum)
31
.toFile(outputFile);
32
return { sendStatus: (status: number) => status };
33
}
0 commit comments