-
Notifications
You must be signed in to change notification settings - Fork 9
49 lines (42 loc) · 1.08 KB
/
security.yml
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: "Security Checks"
on:
push:
branches: ["main"]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:
workflow_call:
inputs:
workflow:
required: true
type: string
secrets:
CC_BUILD_TOKEN:
required: true
GH_DOTCOM_TOKEN:
required: true
env:
REV: ${{ github.run_id }}
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.workflow }}
cancel-in-progress: true
jobs:
security-checks:
strategy:
matrix:
runner: ["self-hosted-linux-amd64"]
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
with:
ghe-token: ${{ secrets.CC_BUILD_TOKEN }}
gh-token: ${{ secrets.GH_DOTCOM_TOKEN }}
runner: ${{ matrix.runner }}
- name: Run cargo audit
# TODO: https://github.com/rustsec/rustsec/issues/1217
run: |
rustup toolchain install 1.79
cargo +1.79 make cargo-audit
- name: Run cargo deny
run: cargo make cargo-deny