From 8cb153cd08a73773b82c5a16ecf670dff2d1607c Mon Sep 17 00:00:00 2001 From: Tom Hacohen Date: Sat, 5 Mar 2022 13:51:31 +0200 Subject: [PATCH] Server: add automatic security auditing for PR/main. We can't merge it until #284 is fixed. --- .github/workflows/server-security.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/server-security.yml diff --git a/.github/workflows/server-security.yml b/.github/workflows/server-security.yml new file mode 100644 index 000000000..3baab8671 --- /dev/null +++ b/.github/workflows/server-security.yml @@ -0,0 +1,22 @@ +name: Server Security + +on: + push: + branches: + - main + paths: + - '**/Cargo.toml' + - '**/Cargo.lock' + pull_request: + 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 }}