2020-05-25 00:45:47 +00:00
|
|
|
name: Security audit
|
|
|
|
on:
|
2020-05-25 14:04:26 +00:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2021-10-25 17:39:09 +00:00
|
|
|
- "**/Cargo.toml"
|
|
|
|
- "**/Cargo.lock"
|
2020-05-25 00:45:47 +00:00
|
|
|
push:
|
|
|
|
paths:
|
2021-10-25 17:39:09 +00:00
|
|
|
- "**/Cargo.toml"
|
|
|
|
- "**/Cargo.lock"
|
2020-05-25 00:45:47 +00:00
|
|
|
schedule:
|
2021-10-25 17:39:09 +00:00
|
|
|
- cron: "0 0 * * *"
|
2020-05-25 00:45:47 +00:00
|
|
|
jobs:
|
|
|
|
security_audit:
|
2021-09-01 17:47:07 +00:00
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'starship/starship') || (github.event_name != 'schedule')
|
2020-05-25 00:45:47 +00:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-10-25 17:39:09 +00:00
|
|
|
- name: Setup | Checkout
|
|
|
|
uses: actions/checkout@v2.3.5
|
|
|
|
- name: Setup | Rust
|
|
|
|
uses: actions-rs/toolchain@v1.0.7
|
|
|
|
with:
|
|
|
|
toolchain: stable
|
|
|
|
override: true
|
|
|
|
profile: minimal
|
|
|
|
- name: Test | Security Audit
|
|
|
|
uses: actions-rs/audit-check@v1.2.0
|
2020-05-25 00:45:47 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|