summaryrefslogtreecommitdiffstats
path: root/.github/workflows/audit.yml
blob: 40e9235a6341a58c3a307e6657d84e214741ee6a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Audit
on:
  push: {}
  pull_request: {}
  schedule:
    - cron: '0 0 * * *'
jobs:
  vulnerabilities:
    runs-on: ubuntu-latest
    steps:
    - uses: hecrj/setup-rust-action@v2
    - name: Install cargo-audit
      run: cargo install cargo-audit
    - uses: actions/checkout@master
    - name: Resolve dependencies
      run: cargo update
    - name: Audit vulnerabilities
      run: cargo audit

  # artifacts:
  #   runs-on: ubuntu-latest
  #   steps:
  #   - uses: hecrj/setup-rust-action@v2
  #   - name: Install cargo-outdated
  #     run: cargo install cargo-outdated
  #   - uses: actions/checkout@master
  #   - name: Delete `web-sys` dependency from `integration` example
  #     run: sed -i '$d' examples/integration/Cargo.toml
  #   - name: Find outdated dependencies
  #     run: cargo outdated --workspace --exit-code 1 --ignore raw-window-handle