Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: remove some extra newlines in sarif report #607

Merged
merged 6 commits into from
Oct 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions internal/output/fixtures/sarif-commit-output.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
**Your dependency is vulnerable to [OSV-2023-72](https://osv.dev/list?q=OSV-2023-72)**.


## [OSV-2023-72](https://osv.dev/vulnerability/OSV-2023-72)

<details>
Expand All @@ -19,8 +18,6 @@

</details>



---

### Affected Packages
Expand All @@ -31,8 +28,6 @@

## Remediation



To fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.

### Fixed Versions
Expand All @@ -41,17 +36,15 @@ To fix these vulnerabilities, update the vulnerabilities past the listed fixed v
| --- | --- | --- |
| OSV-2023-72 | perfetto | 9a7f09383dd39f19e662d428321ca708a2a600a3 |



If you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an
`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.

See the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/

Add or append these values to the following config files to ignore this vulnerability:


`/usr/local/google/home/rexpan/Documents/Project/engine/osv-scanner.toml`

```
[[IgnoredVulns]]
id = "OSV-2023-72"
Expand Down
13 changes: 2 additions & 11 deletions internal/output/fixtures/sarif-output.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
**Your dependency is vulnerable to [CVE-2022-24713](https://osv.dev/list?q=CVE-2022-24713)**
(Also published as: [RUSTSEC-2022-0013](https://osv.dev/vulnerability/RUSTSEC-2022-0013), [GHSA-m5pq-gvj9-9vr8](https://osv.dev/vulnerability/GHSA-m5pq-gvj9-9vr8), ).

(Also published as: [RUSTSEC-2022-0013](https://osv.dev/vulnerability/RUSTSEC-2022-0013), [GHSA-m5pq-gvj9-9vr8](https://osv.dev/vulnerability/GHSA-m5pq-gvj9-9vr8), ).

## [RUSTSEC-2022-0013](https://osv.dev/vulnerability/RUSTSEC-2022-0013)

Expand Down Expand Up @@ -59,8 +58,6 @@

</details>



## [GHSA-m5pq-gvj9-9vr8](https://osv.dev/vulnerability/GHSA-m5pq-gvj9-9vr8)

<details>
Expand Down Expand Up @@ -98,8 +95,6 @@

</details>



---

### Affected Packages
Expand All @@ -110,8 +105,6 @@

## Remediation



To fix these vulnerabilities, update the vulnerabilities past the listed fixed versions below.

### Fixed Versions
Expand All @@ -121,17 +114,15 @@ To fix these vulnerabilities, update the vulnerabilities past the listed fixed v
| GHSA-m5pq-gvj9-9vr8 | regex | 1.5.5 |
| RUSTSEC-2022-0013 | regex | 1.5.5 |



If you believe these vulnerabilities do not affect your code and wish to ignore them, add them to the ignore list in an
`osv-scanner.toml` file located in the same directory as the lockfile containing the vulnerable dependency.

See the format and more options in our documentation here: https://google.github.io/osv-scanner/configuration/

Add or append these values to the following config files to ignore this vulnerability:


`/path/to/sub-rust-project/osv-scanner.toml`

```
[[IgnoredVulns]]
id = "CVE-2022-24713"
Expand Down
Loading