mirror of
https://github.com/esp-rs/espup.git
synced 2025-09-27 04:40:27 +00:00
ci: ✨ Add security checks
This commit is contained in:
parent
1213efb895
commit
7e85b504a6
29
.github/workflows/audit.yaml
vendored
Normal file
29
.github/workflows/audit.yaml
vendored
Normal file
@ -0,0 +1,29 @@
|
||||
name: Security audit
|
||||
|
||||
on:
|
||||
schedule:
|
||||
# Runs at 00:00 UTC everyday
|
||||
- cron: '0 0 * * *'
|
||||
push:
|
||||
paths:
|
||||
- '**/Cargo.toml'
|
||||
- '**/Cargo.lock'
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
- name: Install Rust
|
||||
uses: actions-rs/toolchain@v1
|
||||
with:
|
||||
toolchain: stable
|
||||
profile: minimal
|
||||
override: true
|
||||
- uses: Swatinem/rust-cache@v1
|
||||
- uses: actions-rs/audit-check@v1
|
||||
with:
|
||||
token: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
Loading…
x
Reference in New Issue
Block a user