From a5edb2cc94f26a35ca237422a4f6976200fbca4e Mon Sep 17 00:00:00 2001 From: zhom <2717306+zhom@users.noreply.github.com> Date: Tue, 22 Sep 2026 13:51:51 +0400 Subject: [PATCH] chore: linting --- .github/workflows/osv.yml | 5 ++++ osv-scanner.toml | 58 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 63 insertions(+) create mode 100644 osv-scanner.toml diff --git a/.github/workflows/osv.yml b/.github/workflows/osv.yml index b80aa070..e55820f0 100644 --- a/.github/workflows/osv.yml +++ b/.github/workflows/osv.yml @@ -23,6 +23,7 @@ on: - "pnpm-lock.yaml" - "src-tauri/Cargo.toml" - "src-tauri/Cargo.lock" + - "osv-scanner.toml" - ".github/workflows/osv.yml" merge_group: branches: ["main"] @@ -36,6 +37,8 @@ on: - "pnpm-lock.yaml" - "src-tauri/Cargo.toml" - "src-tauri/Cargo.lock" + - "osv-scanner.toml" + - ".github/workflows/osv.yml" permissions: security-events: write @@ -50,6 +53,7 @@ jobs: with: scan-args: |- -r + --config=osv-scanner.toml --lockfile=pnpm-lock.yaml --lockfile=src-tauri/Cargo.lock ./ @@ -61,6 +65,7 @@ jobs: with: scan-args: |- -r + --config=osv-scanner.toml --lockfile=pnpm-lock.yaml --lockfile=src-tauri/Cargo.lock ./ diff --git a/osv-scanner.toml b/osv-scanner.toml new file mode 100644 index 00000000..d148a3ee --- /dev/null +++ b/osv-scanner.toml @@ -0,0 +1,58 @@ +# Advisories the scan may pass over, and why. This list is NOT a way to quiet a +# real finding: every entry here is a transitive crate this repository cannot +# move on its own, and every one carries a date at which it has to be looked at +# again. Anything actionable must be fixed, not listed. +# +# `ignoreUntil` is a deadline, not a dismissal: once it passes the advisory +# fails the scan again, which is the point. Re-check with +# docker run --rm -v "$PWD":/src -w /src ghcr.io/google/osv-scanner-action:v2.6.0 \ +# --format=table -r --lockfile=pnpm-lock.yaml --lockfile=src-tauri/Cargo.lock ./ + +# Fixed in glib 0.20, which the GTK stack under Tauri does not use yet. Pulled +# in on Linux targets only, through tauri -> gtk -> glib, so it moves when Tauri +# moves and not before. +[[IgnoredVulns]] +id = "RUSTSEC-2024-0429" +reason = "Transitive through Tauri's GTK stack; no version of Tauri ships glib 0.20 yet." +ignoreUntil = 2026-12-31 + +# The rest are RUSTSEC unmaintained notices, not exploitable defects. None has a +# fixed version to move to, and all are transitive. + +# paste <- utoipa-axum, and <- rav1e/pulp in the image decoding stack. +[[IgnoredVulns]] +id = "RUSTSEC-2024-0436" +reason = "Unmaintained crate, no fix published; transitive through utoipa-axum and the image codecs." +ignoreUntil = 2026-12-31 + +# proc-macro-error <- Linux-only build dependencies under Tauri. +[[IgnoredVulns]] +id = "RUSTSEC-2024-0370" +reason = "Unmaintained crate, no fix published; transitive build dependency on Linux targets." +ignoreUntil = 2026-12-31 + +# unic-* <- urlpattern <- tauri-utils. One upstream family, five advisories. +[[IgnoredVulns]] +id = "RUSTSEC-2025-0081" +reason = "Unmaintained unic-* family, no fix published; transitive through tauri-utils -> urlpattern." +ignoreUntil = 2026-12-31 + +[[IgnoredVulns]] +id = "RUSTSEC-2025-0075" +reason = "Unmaintained unic-* family, no fix published; transitive through tauri-utils -> urlpattern." +ignoreUntil = 2026-12-31 + +[[IgnoredVulns]] +id = "RUSTSEC-2025-0080" +reason = "Unmaintained unic-* family, no fix published; transitive through tauri-utils -> urlpattern." +ignoreUntil = 2026-12-31 + +[[IgnoredVulns]] +id = "RUSTSEC-2025-0100" +reason = "Unmaintained unic-* family, no fix published; transitive through tauri-utils -> urlpattern." +ignoreUntil = 2026-12-31 + +[[IgnoredVulns]] +id = "RUSTSEC-2025-0098" +reason = "Unmaintained unic-* family, no fix published; transitive through tauri-utils -> urlpattern." +ignoreUntil = 2026-12-31