Skip to content

feat: fix the vulncheck-filter to parse the text format instead - #2525

Merged
cstockton merged 4 commits into
masterfrom
cs/feat-tools-dir-vulncheck-fix
May 26, 2026
Merged

cstockton merged 4 commits into
masterfrom
cs/feat-tools-dir-vulncheck-fix

Conversation

@cstockton

Copy link
Copy Markdown
Contributor

The existing parser wasn't decoding any values. Once I fixed the decoding it started printing 64 results. After looking into it I realized that govulncheck cmd does some additional aggregation. It turns out that it's non-trivial, rather than try to duplicate that
I just parsed the text output instead.

This change should cause the tests to start failing.

@cstockton
cstockton requested a review from a team as a code owner May 11, 2026 22:38
Comment thread hack/vulncheck-filter/main.go Resolved
Base automatically changed from cs/feat-tools-dir to master May 12, 2026 16:11
The existing parser wasn't decoding any values. Once I fixed the
decoding it started printing 64 results. After looking into it I
realized that govulncheck cmd does some additional aggregation. It
turns out that it's non-trivial, rather than try to duplicate that
I just parsed the text output instead.
@cstockton
cstockton force-pushed the cs/feat-tools-dir-vulncheck-fix branch from f2ed07a to 2a0603a Compare May 12, 2026 17:03
cstockton and others added 3 commits May 14, 2026 12:04
Resolved all findings from govulncheck, all of which were fixed
with a go version upgrade.

I changed vulncheck filter to parse the output of the command line
instead of the JSON. This is because the CLI does a great deal of
post processing after the fact that I did not want to emulate in
the parser. It was much simpler to parse the text output. If it
changes in the future the parser is simple to change. The parser
is also much more strict, it expects vuln list or a success msg
which should prevent silently passing with vulns found.
@cstockton
cstockton merged commit 4136d49 into master May 26, 2026
8 checks passed
@cstockton
cstockton deleted the cs/feat-tools-dir-vulncheck-fix branch May 26, 2026 17:19
cstockton pushed a commit that referenced this pull request Jun 15, 2026
🤖 I have created a release *beep* *boop*
---


##
[2.190.0](v2.189.0...v2.190.0)
(2026-06-11)


### Features

* add -failfast to make test command
([#2553](#2553))
([bec1dd0](bec1dd0))
* **conf:** add JSON config file support
([#2540](#2540))
([e63fef9](e63fef9))
* create tools directory for deterministic builds
([#2522](#2522))
([52cf3d9](52cf3d9))
* **custom-oidc:** support non-standard discovery URLs
([#2573](#2573))
([3dacc64](3dacc64))
* fix the vulncheck-filter to parse the text format instead
([#2525](#2525))
([4136d49](4136d49))
* fork github.com/joho/godotenv into internal/conf/envparse
([#2521](#2521))
([cda62a9](cda62a9))


### Bug Fixes

* Azure issuer validation
([#2560](#2560))
([a39858b](a39858b))
* catch cancelation errors in bg workers & servers
([#2530](#2530))
([77f5918](77f5918))
* check session state for admin tokens
([#2555](#2555))
([c5969ed](c5969ed))
* **config:** warn on invalid WebAuthn config instead of erroring
([#2545](#2545))
([ca0b154](ca0b154))
* **custom-oidc:** strip trailing slashes from issuer
([#2570](#2570))
([169ad67](169ad67))
* **Dockerfile:** ensure forks exists on fs before make deps
([#2567](#2567))
([01f136d](01f136d))
* **mailer:** include SiteURL in notification template data
([#2532](#2532))
([dc015da](dc015da))
* **oauth-server:** serialize concurrent authorize/consent with
row-level lock ([#2512](#2512))
([c816cfe](c816cfe))
* **passkeys:** delete webauthn creds when user is soft-deleted
([#2564](#2564))
([7e1c060](7e1c060))
* **passkeys:** enforce AAL checks on passkey registration and deletion
([#2565](#2565))
([7e6f2e4](7e6f2e4))
* source WebAuthn RP config from env vars
([#2490](#2490))
([63949ca](63949ca))
* when version is empty set to 0.0.0
([#2531](#2531))
([a3b7c8c](a3b7c8c))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: supabase-releaser[bot] <223506987+supabase-releaser[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants