summaryrefslogtreecommitdiffstats
path: root/compiler/rustc_codegen_cranelift/.github/workflows/audit.yml
blob: 3efdec4155932d361b27dd535d7d103ce645162a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
name: Security audit
on:
  workflow_dispatch:
  schedule:
    - cron: '0 10 * * 1' # every monday at 10:00 UTC
permissions:
  issues: write
  checks: write
jobs:
  audit:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v3
      - run: |
          sed -i 's/components.*/components = []/' rust-toolchain
          echo 'profile = "minimal"' >> rust-toolchain
      - uses: rustsec/audit-check@v1.4.1
        with:
          token: ${{ secrets.GITHUB_TOKEN }}