Skip to content

Commit

Permalink
s/safety/snyk/
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Pennebaker committed Aug 14, 2024
1 parent bb3f487 commit 4a7480a
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
nodejs 20.10.0
rust 1.75.0
1 change: 1 addition & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

* [Docker](https://www.docker.com/) 20.10.12+
* POSIX compatible [make](https://pubs.opengroup.org/onlinepubs/9699919799/utilities/make.html)
* [Node.js](https://nodejs.org/en/) 20.10.0+
* [rustup](https://rustup.rs/) 1.25.2+
* [Rust](https://www.rust-lang.org/en-US/) 1.75.0+
* POSIX compatible [tar](https://pubs.opengroup.org/onlinepubs/7908799/xcu/tar.html)
Expand Down
2 changes: 2 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
.PHONY: all

all:
npm install -g snyk

rustup component add \
clippy \
rustfmt
Expand Down
1 change: 0 additions & 1 deletion requirements-dev.txt → requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
safety
yamllint>=1.11.1,<2.0
13 changes: 13 additions & 0 deletions tinyrick.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,20 @@ fn doc() {

/// Security audit
fn audit() {
tinyrick::deps(cargo_audit);
tinyrick::deps(snyk);
}

/// Run cargo audit
fn cargo_audit() {
tinyrick::exec!("cargo", &["audit"]);
}

/// Run snyk
fn snyk() {
tinyrick::exec!("snyk", &["test"]);
}

/// Run clippy
fn clippy() {
tinyrick_extras::clippy();
Expand Down Expand Up @@ -126,6 +137,8 @@ fn main() {
install,
uninstall,
audit,
cargo_audit,
snyk,
clippy,
rustfmt,
unmake,
Expand Down

0 comments on commit 4a7480a

Please sign in to comment.