0
0
Fork 0
mirror of https://github.com/renovatebot/renovate.git synced 2025-01-12 22:29:06 +00:00
renovatebot_renovate/lib/config/presets/internal/security.ts
Rhys Arkins 879f7cc212 feat(packageRules): migrate matchers and excludes (#28602)
Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
Co-authored-by: Michael Kriese <michael.kriese@visualon.de>
2024-07-25 15:28:16 +02:00

39 lines
1 KiB
TypeScript

import type { Preset } from '../types';
export const presets: Record<string, Preset> = {
'openssf-scorecard': {
description: 'Show OpenSSF badge on pull requests.',
packageRules: [
{
matchSourceUrls: ['https://github.com/**'],
prBodyDefinitions: {
OpenSSF:
'[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/{{sourceRepo}}/badge)](https://securityscorecards.dev/viewer/?uri=github.com/{{sourceRepo}})',
},
prBodyColumns: [
'Package',
'Type',
'Update',
'Change',
'Pending',
'OpenSSF',
],
},
],
},
'only-security-updates': {
description:
'Only update dependencies if vulnerabilities have been detected.',
extends: ['config:recommended'],
packageRules: [
{
enabled: false,
matchPackageNames: ['*'],
},
],
vulnerabilityAlerts: {
enabled: true,
},
osvVulnerabilityAlerts: true,
},
};