sec: add a security-audit workflow in CI

This CL introduces:
- adds a security audit check in CI workflow aiming to check any security issues in packages.
- updates packages versions
This commit is contained in:
Benjamin Chastanier
2021-06-08 10:44:46 +02:00
committed by Pierre Mavro
parent e2c3b29669
commit c8d409c4a8
4 changed files with 683 additions and 652 deletions

View File

@@ -7,6 +7,13 @@ on:
branches-ignore: [ main, dev ] branches-ignore: [ main, dev ]
jobs: jobs:
security_audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
build: build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:

1291
Cargo.lock generated

File diff suppressed because it is too large Load Diff

View File

@@ -7,20 +7,20 @@ edition = "2018"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies] [dependencies]
chrono = "0.4.11" chrono = "0.4.19"
cmd_lib = "0.7.8" cmd_lib = "1.0.13"
git2 = "0.13.8" git2 = "0.13.20"
walkdir = "2.3.1" walkdir = "2.3.2"
itertools = "0.9.0" itertools = "0.10.0"
base64 = "0.12.3" base64 = "0.13.0"
dirs = "3.0.1" dirs = "3.0.2"
rust-crypto = "0.2.36" rust-crypto = "0.2.36"
retry = "1.2.1" retry = "1.2.1"
trust-dns-resolver = "0.19.6" trust-dns-resolver = "0.20.3"
rand = "0.7.3" rand = "0.8.3"
gethostname = "0.2.1" gethostname = "0.2.1"
reqwest = { version = "0.10.8", features = ["blocking"] } reqwest = { version = "0.11.3", features = ["blocking"] }
futures = "0.3" futures = "0.3.15"
timeout-readwrite = "0.3.1" timeout-readwrite = "0.3.1"
lazy_static = "1.4.0" lazy_static = "1.4.0"
@@ -31,23 +31,23 @@ flate2 = "1.0.20" # tar gz
tar = "0.4.35" tar = "0.4.35"
# logger # logger
tracing = "0.1" tracing = "0.1.26"
tracing-subscriber = "0.2" tracing-subscriber = "0.2.18"
# Docker deps # Docker deps
# shiplift = "0.6.0" # shiplift = "0.6.0"
# Filesystem # Filesystem
sysinfo = "0.16.4" sysinfo = "0.18.2"
# Jinja2 # Jinja2
tera = "1.10.0" tera = "1.10.0"
# Json # Json
serde = "1.0.114" serde = "1.0.126"
serde_json = "1.0.57" serde_json = "1.0.64"
serde_derive = "1.0" serde_derive = "1.0.126"
# AWS deps # AWS deps
tokio = { version = "1.5.0", features = ["full"] } tokio = { version = "1.6.1", features = ["full"] }
rusoto_core = "0.46.0" rusoto_core = "0.46.0"
rusoto_sts = "0.46.0" rusoto_sts = "0.46.0"
rusoto_credential = "0.46.0" rusoto_credential = "0.46.0"

View File

@@ -971,6 +971,7 @@ impl Clone2 for Context {
let suffix = rand::thread_rng() let suffix = rand::thread_rng()
.sample_iter(&Alphanumeric) .sample_iter(&Alphanumeric)
.take(10) .take(10)
.map(|e| e.to_string())
.collect::<String>(); .collect::<String>();
new.execution_id = format!("{}-{}", self.execution_id, suffix); new.execution_id = format!("{}-{}", self.execution_id, suffix);
new new