-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: Adding RustSec and CargoFmt jobs (#55)
* ci: Adding RustSec and CargoFmt jobs * build: Updating the lockfile
- Loading branch information
Showing
3 changed files
with
60 additions
and
15 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
on: | ||
pull_request: | ||
types: [assigned, opened, synchronize, reopened] | ||
paths: | ||
- "**.rs" | ||
|
||
name: Cargo fmt | ||
|
||
jobs: | ||
format: | ||
name: rustfmt | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: dtolnay/rust-toolchain@nightly | ||
with: | ||
toolchain: nightly | ||
components: rustfmt # ,clippy | ||
# https://github.com/marketplace/actions/rust-rustfmt-check | ||
- uses: mbrobbel/rustfmt-check@master | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
commit-message: "chore: Format Rust code using rustfmt" |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Security Audit | ||
|
||
# Ignore List | ||
# - RUSTSEC-2020-0071 => Potential segfault in the time crate | ||
|
||
on: | ||
pull_request: | ||
types: [assigned, opened, synchronize, reopened] | ||
paths: | ||
- "**/Cargo.toml" | ||
- "**/Cargo.lock" | ||
schedule: | ||
- cron: "0 0 * * 1" # every Monday at 00:00 UTC | ||
|
||
jobs: | ||
security_audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: rustsec/audit-check@v1.4.1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
ignore: RUSTSEC-2020-0071 |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.