Watch
1
0
Fork
You've already forked push-to-registry
0
mirror of https://github.com/redhat-actions/push-to-registry.git synced 2026-11-16 19:39:34 +00:00
push-to-registry/tsconfig.json
Christopher Brown c584183e22
Fix incomplete URL substring sanitization (CodeQL alert) (#124)
Replace `image.includes("amazonaws.com")` with a check for dots or
colons in the first path segment, which reliably detects any
fully-qualified registry hostname — not just AWS ECR.

Adds unit tests for getFullDockerImageName using Node's built-in test
runner.

Co-authored-by: Claude Opus 4.6 <[email protected]>
2026-07-28 16:28:54 +01:00

22 lines
539 B
JSON

{
"compilerOptions": {
"target": "es2024",
"module": "preserve",
"moduleResolution": "bundler",
"lib": ["es2024"],
"outDir": "out/",
"rootDir": "src/",
"sourceMap": true,
"strict": true,
"esModuleInterop": true,
"skipLibCheck": true,
"forceConsistentCasingInFileNames": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"types": ["node"]
},
"include": ["src/"],
"exclude": ["src/**/*.test.ts"]
}