mirror of
https://github.com/zadam/trilium.git
synced 2026-09-12 19:50:20 +05:00
ci(deps): keep Dependabot off pdfjs-dist
Dependabot security updates are enabled repo-wide and need no configuration, so they have been proposing bare pdfjs-dist bumps — two are open right now against GHSA-hq66-cqwq-w95j. A bump without the matching re-vendor cannot open a PDF at all, so the PR is never mergeable as-is. This silences security PRs for pdfjs-dist as well as version ones. The advisory is fixed by dispatching update-pdfjs-viewer, which picks the same latest version and re-vendors the viewer alongside it. open-pull-requests-limit is 0 because declaring a package-ecosystem is what enables Dependabot's version updates; without it this file would start competing with Renovate across the whole repo. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
4db6943d22
commit
009abdce2b
25
.github/dependabot.yml
vendored
Normal file
25
.github/dependabot.yml
vendored
Normal file
@ -0,0 +1,25 @@
|
||||
# Renovate owns version updates for this repository (see renovate.json). Dependabot is
|
||||
# only active here for security updates, which need no configuration file — this one
|
||||
# exists solely to carry the ignore below.
|
||||
#
|
||||
# open-pull-requests-limit: 0 disables Dependabot's *version* updates for the ecosystem;
|
||||
# security updates are unaffected by it, which is why the ignore is needed as well.
|
||||
version: 2
|
||||
updates:
|
||||
- package-ecosystem: "npm"
|
||||
directories:
|
||||
- "/**"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
open-pull-requests-limit: 0
|
||||
ignore:
|
||||
# Bumping pdfjs-dist on its own produces a tree that cannot open a single PDF:
|
||||
# pdf.js compares the library version against the viewer vendored under
|
||||
# packages/pdfjs-viewer/viewer and refuses to start when they disagree. The
|
||||
# update-pdfjs-viewer workflow bumps both together; a bot can only ever do half.
|
||||
#
|
||||
# This silences security PRs for pdfjs-dist too. That is the intended trade-off,
|
||||
# not an oversight — an advisory is fixed by dispatching update-pdfjs-viewer,
|
||||
# which picks up the same latest version and re-vendors alongside it. Watch the
|
||||
# alert rather than waiting for the weekly run.
|
||||
- dependency-name: "pdfjs-dist"
|
||||
Loading…
Reference in New Issue
Block a user