From 5ab04a9e9c7fb1b477a0ca46b7a4549bbc419ca1 Mon Sep 17 00:00:00 2001 From: Edward Shen Date: Fri, 9 Jul 2021 20:02:22 -0400 Subject: [PATCH] add security CI --- .github/workflows/security_audit.yml | 14 ++++++++++++++ Cargo.toml | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/security_audit.yml diff --git a/.github/workflows/security_audit.yml b/.github/workflows/security_audit.yml new file mode 100644 index 0000000..e46bb3c --- /dev/null +++ b/.github/workflows/security_audit.yml @@ -0,0 +1,14 @@ +name: Security audit +on: + push: + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' +jobs: + security_audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index 748c37e..840cf04 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -47,4 +47,4 @@ tokio-util = { version = "0.6", features = [ "codec" ] } url = { version = "2", features = [ "serde" ] } [build-dependencies] -vergen = "5" \ No newline at end of file +vergen = "5"