Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: renovatebot/renovate
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 37.285.1
Choose a base ref
...
head repository: renovatebot/renovate
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: da6056cf8cf26057184737d83e2654c4a059aca1
Choose a head ref
  • 1 commit
  • 2 files changed
  • 2 contributors

Commits on Apr 11, 2024

  1. feat(config/presets): add security-only preset (#28320)

    Co-authored-by: Sebastian Poxhofer <secustor@users.noreply.github.com>
    shahradelahi and secustor authored Apr 11, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    da6056c View commit details
Showing with 19 additions and 0 deletions.
  1. +4 −0 docs/usage/configuration-options.md
  2. +15 −0 lib/config/presets/internal/security.ts
4 changes: 4 additions & 0 deletions docs/usage/configuration-options.md
Original file line number Diff line number Diff line change
@@ -4004,3 +4004,7 @@ To disable the vulnerability alerts feature, set `enabled=false` in a `vulnerabi
}
}
```

<!-- prettier-ignore -->
!!! note
If you want to raise only vulnerability fix PRs, you may use the `security:only-security-updates` preset.
15 changes: 15 additions & 0 deletions lib/config/presets/internal/security.ts
Original file line number Diff line number Diff line change
@@ -21,4 +21,19 @@ export const presets: Record<string, Preset> = {
},
],
},
'only-security-updates': {
description:
'Only update dependencies if vulnerabilities have been detected.',
extends: ['config:recommended'],
packageRules: [
{
enabled: false,
matchPackageNames: ['*'],
},
],
vulnerabilityAlerts: {
enabled: true,
},
osvVulnerabilityAlerts: true,
},
};