ci: Convert audit job to (scheduled) GitHub actions workflow

This commit is contained in:
Jonas Platte 2021-04-22 14:18:26 +02:00
parent 43905b731a
commit dcf5081735
No known key found for this signature in database
GPG Key ID: CC154DE0E30B7C67
2 changed files with 12 additions and 9 deletions

View File

@ -1,9 +0,0 @@
image: archlinux
packages:
- cargo-audit
sources:
- https://github.com/ruma/ruma
tasks:
- audit: |
cd ruma
cargo audit

12
.github/workflows/audit.yml vendored Normal file
View File

@ -0,0 +1,12 @@
on:
schedule:
# every monday at 4AM (UTC?)
- cron: '0 4 * * 1'
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}