-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
security.ts
39 lines (38 loc) · 1 KB
/
security.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
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,
},
};