Separate audit from build task

Signed-off-by: trivernis <trivernis@protonmail.com>
pull/3/head
trivernis 4 years ago
parent 3a09c1c4a2
commit f6575d4820
Signed by: Trivernis
GPG Key ID: DFFFCC2C7A02DB45

@ -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 }}

@ -3,8 +3,6 @@ name: Publish Docker image to GitHub Package Registry
on: on:
push: push:
branches: [ main ] branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch: workflow_dispatch:
jobs: jobs:

@ -1,4 +1,4 @@
name: Rust name: Build and Test
on: on:
push: push:
@ -32,8 +32,3 @@ jobs:
- name: Run tests - name: Run tests
run: cargo test --verbose run: cargo test --verbose
- name: Run audit
uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

Loading…
Cancel
Save