From 69213f2cac91dfaba56cc7d8a68184f929de59c9 Mon Sep 17 00:00:00 2001 From: Ivan Tham Date: Fri, 24 Jun 2022 21:42:42 +0800 Subject: [PATCH] Add audit --- .github/workflows/change-audit.yml | 14 ++++++++++++++ .github/workflows/scheduled-audit.yml | 12 ++++++++++++ 2 files changed, 26 insertions(+) create mode 100644 .github/workflows/change-audit.yml create mode 100644 .github/workflows/scheduled-audit.yml diff --git a/.github/workflows/change-audit.yml b/.github/workflows/change-audit.yml new file mode 100644 index 0000000..6d4f7fd --- /dev/null +++ b/.github/workflows/change-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@v3 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/scheduled-audit.yml b/.github/workflows/scheduled-audit.yml new file mode 100644 index 0000000..4b253b5 --- /dev/null +++ b/.github/workflows/scheduled-audit.yml @@ -0,0 +1,12 @@ +name: Security audit +on: + schedule: + - cron: '0 0 * * *' +jobs: + security_audit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file