2020-05-25 02:45:47 +02:00
|
|
|
name: Security audit
|
|
|
|
on:
|
2020-05-25 16:04:26 +02:00
|
|
|
pull_request:
|
|
|
|
paths:
|
2021-10-25 19:39:09 +02:00
|
|
|
- "**/Cargo.toml"
|
|
|
|
- "**/Cargo.lock"
|
2020-05-25 02:45:47 +02:00
|
|
|
push:
|
|
|
|
paths:
|
2021-10-25 19:39:09 +02:00
|
|
|
- "**/Cargo.toml"
|
|
|
|
- "**/Cargo.lock"
|
2020-05-25 02:45:47 +02:00
|
|
|
schedule:
|
2021-10-25 19:39:09 +02:00
|
|
|
- cron: "0 0 * * *"
|
2020-05-25 02:45:47 +02:00
|
|
|
jobs:
|
|
|
|
security_audit:
|
2021-09-01 19:47:07 +02:00
|
|
|
if: (github.event_name == 'schedule' && github.repository == 'starship/starship') || (github.event_name != 'schedule')
|
2020-05-25 02:45:47 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-10-25 19:39:09 +02:00
|
|
|
- name: Setup | Checkout
|
2022-03-02 16:09:45 +01:00
|
|
|
uses: actions/checkout@v3
|
2021-10-25 19:39:09 +02:00
|
|
|
- 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 02:45:47 +02:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|