Skip to content

Commit 1fa2fd7

Browse files
committed
fix(package): correct mislabeled header in deep score markdown
The transitive section of `socket package score --markdown` emitted `### Capabilities` twice. The first was mislabeled: its body lists the lowest-scoring package per score category, not capabilities. Rename that header to `### Lowest Scoring Package Per Category` so the two sections are distinct and correctly labeled. Snapshots updated. Fixes #1356
1 parent 7e5fa43 commit 1fa2fd7

3 files changed

Lines changed: 7 additions & 7 deletions

File tree

packages/cli/src/commands/package/output-purls-deep-score.mts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ export function createMarkdownReport(data: PurlDataResponse): string {
133133
o.push(`- Vulnerability: ${score.vulnerability}`)
134134
o.push(`- License: ${score.license}`)
135135
o.push('')
136-
o.push('### Capabilities')
136+
o.push('### Lowest Scoring Package Per Category')
137137
o.push('')
138138
o.push(
139139
'These are the packages with the lowest recorded score. If there is more than one with the lowest score, just one is shown here. This may help you figure out the source of low scores.',

packages/cli/test/unit/commands/package/output-purls-deep-score-nuget-maven-python.test.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ describe('package score output', async () => {
7171
- Vulnerability: 84
7272
- License: 100
7373
74-
### Capabilities
74+
### Lowest Scoring Package Per Category
7575
7676
These are the packages with the lowest recorded score. If there is more than one with the lowest score, just one is shown here. This may help you figure out the source of low scores.
7777
@@ -163,7 +163,7 @@ describe('package score output', async () => {
163163
- Vulnerability: 25
164164
- License: 50
165165
166-
### Capabilities
166+
### Lowest Scoring Package Per Category
167167
168168
These are the packages with the lowest recorded score. If there is more than one with the lowest score, just one is shown here. This may help you figure out the source of low scores.
169169
@@ -268,7 +268,7 @@ describe('package score output', async () => {
268268
- Vulnerability: 100
269269
- License: 70
270270
271-
### Capabilities
271+
### Lowest Scoring Package Per Category
272272
273273
These are the packages with the lowest recorded score. If there is more than one with the lowest score, just one is shown here. This may help you figure out the source of low scores.
274274

packages/cli/test/unit/commands/package/output-purls-deep-score.test.mts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ describe('package score output', async () => {
106106
- Vulnerability: 25
107107
- License: 80
108108
109-
### Capabilities
109+
### Lowest Scoring Package Per Category
110110
111111
These are the packages with the lowest recorded score. If there is more than one with the lowest score, just one is shown here. This may help you figure out the source of low scores.
112112
@@ -212,7 +212,7 @@ describe('package score output', async () => {
212212
- Vulnerability: 84
213213
- License: 70
214214
215-
### Capabilities
215+
### Lowest Scoring Package Per Category
216216
217217
These are the packages with the lowest recorded score. If there is more than one with the lowest score, just one is shown here. This may help you figure out the source of low scores.
218218
@@ -311,7 +311,7 @@ describe('package score output', async () => {
311311
- Vulnerability: 72
312312
- License: 70
313313
314-
### Capabilities
314+
### Lowest Scoring Package Per Category
315315
316316
These are the packages with the lowest recorded score. If there is more than one with the lowest score, just one is shown here. This may help you figure out the source of low scores.
317317

0 commit comments

Comments
 (0)