-
Notifications
You must be signed in to change notification settings - Fork 0
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
WIP Bots #1
base: main
Are you sure you want to change the base?
WIP Bots #1
Conversation
This makes it more plausible for this format to be made available in a subcrate to allow other libraries/tools to easily deserialize it. Also makes it more obvious the places where we're being weirdly inconsistent or exposing random internals because I was lazy/hasty. A weird side-effect of this is that the order of the fields got shuffled around. It seems the json macro will sort fields by name, while proper derives use the decl order. The latter seems preferred anyway, but unfortunately we take a huge obfuscation churn. This also contains part of the introduction of the concept of --output-format=json-cli because I realized I wanted to do this half way through adding that. WHOOPS.
From chat: ok so I got a public cargo-dist repo setup at: https://github.com/axodotdev/cargo-dist it's basically the template but with things tweaked to be cargo-* friendly. binary does nothing. I also setup cargo-vet ci as per the book (wasmtime uses this task): https://github.com/axodotdev/cargo-dist/blob/main/.github/workflows/ci.yml#L95-L97 but pointing at my PR branch (and using --output-format=json-full): #1 (As a side-effect the cargo-vet binary caching is broken so the tasks take extra long to fetch+build it from scratch every time.) Here is a failing dependabot PR because it updates a dep to a version not audited in cargo-vet: axodotdev/cargo-dist#7 Here is a the failing CI task and the JSON it vomits out: https://github.com/axodotdev/cargo-dist/actions/runs/3245691708/jobs/5323548466 |
The biggest hurdle to overcome at this point is creating the GH app/bot and hooking this failing CI into that, as per the Design Board |
I've been prototyping out some actions stuff over at https://github.com/Gankra/gh-action-tests/ just so I'm the only one suffering under 10 million failed CI runs. Current Status
Future Work
|
🎊 the mvp is working! Changes
TODO
|
filed a bunch of these on https://github.com/axodotdev/cargo-vet-webapp/issues/ |
Workflow Design Board
Upstream Issue
Most of this is just a bunch of churn to make the json schema more explicitly typed so that other things can more easily consume it.
TODO:
cargo vet --output-format=json-full
cargo-vet certify
in CI at the webapp's request?certify