Skip to content

Commit

Permalink
Merge pull request #152 from moka-rs/cargo-audit
Browse files Browse the repository at this point in the history
Enable Cargo Audit on the CI
  • Loading branch information
tatsuya6502 committed Jun 18, 2022
2 parents 7f54c8b + 3b053bf commit 59542ca
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 3 deletions.
47 changes: 47 additions & 0 deletions .github/workflows/Audit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
name: Cargo Audit

on:
push:
paths:
- '**/Cargo.toml'
- '**/Cargo.lock'
schedule:
# https://crontab.guru/
- cron: '5 20 * * 5'

jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Checkout Moka
uses: actions/checkout@v2

- name: Install Rust toolchain (Nightly)
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
override: true

- uses: Swatinem/rust-cache@v1

- name: cargo clean
uses: actions-rs/cargo@v1
with:
command: clean

- name: Check for known security vulnerabilities (Latest versions)
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Downgrade dependencies to minimal versions
uses: actions-rs/cargo@v1
with:
command: update
args: -Z minimal-versions

- name: Check for known security vulnerabilities (Minimal versions)
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '.vscode/**'
schedule:
# Run against the last commit on the default branch on Friday at 8pm (UTC?)
- cron: '0 20 * * 5'
- cron: '0 20 * * 5'

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/CIQuantaDisabled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:
- '.vscode/**'
schedule:
# Run against the last commit on the default branch on Friday at 8pm (UTC?)
- cron: '0 20 * * 5'
- cron: '0 20 * * 5'

jobs:
test:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ futures-util = { version = "0.3", optional = true }
actix-rt = { version = "2.7", default-features = false }
async-std = { version = "1.11", features = ["attributes"] }
getrandom = "0.2"
reqwest = "0.11"
reqwest = "0.11.11"
skeptic = "0.13"
tokio = { version = "1.19", features = ["rt-multi-thread", "macros", "sync", "time" ] }

Expand Down

0 comments on commit 59542ca

Please sign in to comment.