Repository navigation
RustSecJP check の最初の版(v0.1.0)を足す - #1
Merged
Merged
Conversation
- Cargo.lock を読み、OSV(RustSec、GHSA、MAL)と RustSecJP のキャンペーン記録に照らして、日本語で知らせる - 名前を似せた crate の注意(Damerau-Levenshtein、人気の crate 1000 件と比べる) - GitHub Action として、PR に 1 つのコメントを作り、更新する - 「@rustsecjp-bot check」のコメントで動く(書き込み権限のある人だけ) - PR のコードは動かさず、Cargo.lock だけを API で読む - 依存は serde、serde_json、toml、ureq(rustls)、flate2、tar だけ。unsafe は禁止
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
何を変えるか
Rust のプロジェクトの
Cargo.lockを確かめ、結果を日本語で知らせるツールの最初の版です。Rust で書いています。確かめるもの
使い方
rustsecjp-check --lockfile Cargo.lockexamples/workflow.ymlをコピーすれば使えます。@rustsecjp-bot checkとコメントすると、もう一度確かめます。動かせるのは、書き込み権限のある人だけです。安全のための決まり
Cargo.lockは、API で読むだけです。#![forbid(unsafe_code)]で、unsafeを禁止しています。依存は、よく知られた 6 crate だけです。確かめたこと
Cargo.lock(285 crate)で実際に動かし、結果を確かめました。まだ試していないもの
GitHub の上での、リリース用のビルド(macOS、Windows を含む)と、Action がリリースからバイナリを落とす流れです。マージ後に
v0.1.0のタグを付けると、リリースが作られます。この PR は bot(rustsecjp-bot)から出しています。マージには @hina-kura49 の承認が要ります。