Repository navigation
Commit 4842467
Bump dependencies flagged by GitHub repository advisories (#7320)
The vulnerable-dependency bumper only sees advisories in the Go
vulnerability database. Maintainers often publish a GitHub repository
security advisory (GHSA) days or weeks before it reaches GitHub's global
advisory database and, from there, the Go vulnerability database. Until
then neither govulncheck nor Dependabot reports it.
`go.opentelemetry.io/otel/trace` v1.44.0 is an example:
[GHSA-q7gw-24fr-5p69](GHSA-q7gw-24fr-5p69)
was published on Oct 28 with a fix in v1.47.0, and none of these
databases has it yet.
This is a first step toward GHSA support. A new tool,
`tools/repoadvisory`, maps each module linked into the CLI to its GitHub
repository and checks it against that repository's published advisories.
It emits only the advisories that name a patched version, as
govulncheck-format JSON. Those without a patched version are logged and
skipped, since there is nothing to bump to. The workflow feeds this
output into `vulnbump` alongside govulncheck's, and the existing
all-or-nothing behavior is unchanged: if any bump fails, no PR is opened
and the run fails. `vulnbump` now links each advisory to the URL in its
record, so GHSA IDs link to their GitHub page. A `dry_run` dispatch
input computes and shows the bump without creating a pull request or
failure issue.
Against current main this produces one bump, otel 1.44.0 → 1.47.0. The
two pgx advisories
([GHSA-j38q-h3ph-jjpq](GHSA-j38q-h3ph-jjpq),
[GHSA-95fj-3fxw-g62g](GHSA-95fj-3fxw-g62g))
name no patched version and are skipped.
This pull request and its description were written by Isaac.
Co-authored-by: Isaac <no-reply@databricks.com>1 parent f9a6aa4 commit 4842467
8 files changed
Lines changed: 1181 additions & 15 deletions
File tree
- .github/workflows
- tools
- repoadvisory
- testdata
- vulnbump
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
35 | 40 | | |
36 | 41 | | |
37 | 42 | | |
38 | | - | |
39 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
40 | 47 | | |
41 | 48 | | |
42 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
43 | 53 | | |
44 | 54 | | |
45 | 55 | | |
| |||
57 | 67 | | |
58 | 68 | | |
59 | 69 | | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
60 | 80 | | |
61 | | - | |
| 81 | + | |
62 | 82 | | |
63 | 83 | | |
64 | 84 | | |
| |||
78 | 98 | | |
79 | 99 | | |
80 | 100 | | |
81 | | - | |
| 101 | + | |
82 | 102 | | |
83 | 103 | | |
84 | 104 | | |
| |||
87 | 107 | | |
88 | 108 | | |
89 | 109 | | |
90 | | - | |
| 110 | + | |
91 | 111 | | |
92 | | - | |
| 112 | + | |
93 | 113 | | |
94 | 114 | | |
95 | 115 | | |
| |||
126 | 146 | | |
127 | 147 | | |
128 | 148 | | |
129 | | - | |
| 149 | + | |
130 | 150 | | |
131 | 151 | | |
132 | 152 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments