From f6575d482004141abd29dd25022724472ade4d9c Mon Sep 17 00:00:00 2001 From: trivernis Date: Thu, 12 Nov 2020 22:59:18 +0100 Subject: [PATCH] Separate audit from build task Signed-off-by: trivernis --- .github/workflows/audit.yml | 25 +++++++++++++++++++++++++ .github/workflows/docker.yml | 2 -- .github/workflows/rust.yml | 7 +------ 3 files changed, 26 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/audit.yml diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml new file mode 100644 index 0000000..6a60868 --- /dev/null +++ b/.github/workflows/audit.yml @@ -0,0 +1,25 @@ +name: Run Cargo Audit + +on: + push: + branches: [ main ] + pull_request: + branches: [ main + schedule: + - cron: '0 0 * * *' + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Run audit + uses: actions-rs/audit-check@v1 + with: + token: ${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f3eaed4..e1a7cc7 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -3,8 +3,6 @@ name: Publish Docker image to GitHub Package Registry on: push: branches: [ main ] - pull_request: - branches: [ main ] workflow_dispatch: jobs: diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index a5e6e8e..7fdcafb 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,4 +1,4 @@ -name: Rust +name: Build and Test on: push: @@ -32,8 +32,3 @@ jobs: - name: Run tests run: cargo test --verbose - - - name: Run audit - uses: actions-rs/audit-check@v1 - with: - token: ${{ secrets.GITHUB_TOKEN }}