@netlify/build
Version:
Netlify build module
11 lines (10 loc) • 599 B
JavaScript
// Reports any validations completed on the deploy to the API
export const reportValidations = async function ({ api, secretScanResult, deployId, systemLog, }) {
try {
// @ts-expect-error Property 'updateDeployValidations' does not exist on type 'DynamicMethods'. This is a private/internal-only method and isn't generated in the type definitions.
await api.updateDeployValidations({ deploy_id: deployId, body: { secrets_scan: secretScanResult } });
}
catch (e) {
systemLog(`Unable to report secrets scanning results to API. Deploy id: ${deployId}`, e);
}
};