Merge pull request #8093 from RoadieHQ/scorecard-tech-insights

Scorecard for tech insights
This commit is contained in:
Patrik Oldsberg
2021-12-02 12:04:27 +01:00
committed by GitHub
28 changed files with 710 additions and 6 deletions
@@ -92,11 +92,6 @@ export async function createRouter<
router.post('/checks/run/:namespace/:kind/:name', async (req, res) => {
const { namespace, kind, name } = req.params;
try {
if (!('checks' in req.body)) {
return res.status(422).send({
message: 'Failed to get checks from request.',
});
}
const { checks }: { checks: string[] } = req.body;
const entityTriplet = stringifyEntityRef({ namespace, kind, name });
const checkResult = await factChecker.runChecks(entityTriplet, checks);