From 4d0c27e38c6d17c2e61fb6218383448ae204079c Mon Sep 17 00:00:00 2001 From: svartalf Date: Sun, 26 Jan 2020 19:32:25 +0300 Subject: [PATCH 1/4] Invoking audit each 15 minutes --- .github/workflows/audit.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index 1155a2e..dd9c191 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -2,7 +2,7 @@ name: Security audit on: schedule: - - cron: '0 0 0 * *' + - cron: '*/20 * * * *' push: paths: - '**/Cargo.toml' @@ -14,7 +14,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v1 - - uses: actions-rs/audit-check@v1 + - uses: actions-rs/audit-check@cargo-audit-update with: token: ${{ secrets.GITHUB_TOKEN }} From 7a01e5565ab9d944cacb35ee7504ebcd76743e4d Mon Sep 17 00:00:00 2001 From: svartalf Date: Sun, 26 Jan 2020 20:11:58 +0300 Subject: [PATCH 2/4] reducing audit frequency --- .github/workflows/audit.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index dd9c191..dedab5b 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -2,7 +2,7 @@ name: Security audit on: schedule: - - cron: '*/20 * * * *' + - cron: '0 0 1 * *' push: paths: - '**/Cargo.toml' From 467b5d6fabce351acb521465b14b2077573a9be4 Mon Sep 17 00:00:00 2001 From: svartalf Date: Mon, 11 May 2020 21:02:49 +0300 Subject: [PATCH 3/4] Test PR with new clippy --- example/src/lib.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/src/lib.rs b/example/src/lib.rs index 488b58a..f304981 100644 --- a/example/src/lib.rs +++ b/example/src/lib.rs @@ -21,6 +21,7 @@ pub fn pid() -> Pid { // Specifically dumb function, just to trigger clippy pub fn pid_is_valid(pid: Pid) -> bool { let pid = pid as u32; + println!("{}", pid < 0); if pid < 0 { return false; } else { @@ -38,4 +39,4 @@ mod tests { fn test_pid_is_working() { assert_eq!(pid() as u32, process::id()); } -} \ No newline at end of file +} From 91c2a6ce0ea2508ce01bd8047815bf0b4f1f9663 Mon Sep 17 00:00:00 2001 From: svartalf Date: Tue, 12 May 2020 08:12:02 +0300 Subject: [PATCH 4/4] Much better docs --- example/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/src/lib.rs b/example/src/lib.rs index f304981..4c81c95 100644 --- a/example/src/lib.rs +++ b/example/src/lib.rs @@ -18,7 +18,7 @@ pub fn pid() -> Pid { } } -// Specifically dumb function, just to trigger clippy +// Extremely dumb function, just to trigger clippy as much as possible pub fn pid_is_valid(pid: Pid) -> bool { let pid = pid as u32; println!("{}", pid < 0);