Skip to content

Commit c5481b4

Browse files
Add Security Audit & Update CI (#184)
* add audit check github action * update checkout github action
1 parent d2a87da commit c5481b4

File tree

2 files changed

+30
-3
lines changed

2 files changed

+30
-3
lines changed

.github/workflows/main.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
name: Test
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
12+
- uses: actions/checkout@v3
1313
- uses: actions-rs/toolchain@v1
1414
with:
1515
toolchain: nightly
@@ -23,7 +23,7 @@ jobs:
2323
name: Code format
2424
runs-on: ubuntu-latest
2525
steps:
26-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v3
2727
- uses: actions-rs/toolchain@v1
2828
with:
2929
toolchain: nightly
@@ -41,7 +41,7 @@ jobs:
4141
permissions: write-all
4242
runs-on: ubuntu-latest
4343
steps:
44-
- uses: actions/checkout@v2
44+
- uses: actions/checkout@v3
4545
- uses: actions-rs/toolchain@v1
4646
with:
4747
components: clippy

.github/workflows/security_audit.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Security Audit
2+
3+
on:
4+
schedule:
5+
# Runs at 00:00 UTC everyday
6+
- cron: '0 0 * * *'
7+
push:
8+
paths:
9+
- '**/Cargo.toml'
10+
- '**/Cargo.lock'
11+
pull_request:
12+
13+
jobs:
14+
security_audit:
15+
runs-on: ubuntu-latest
16+
steps:
17+
- name: Checkout repository
18+
uses: actions/checkout@v3
19+
- name: Install Rust
20+
uses: actions-rs/toolchain@v1
21+
with:
22+
toolchain: nightly
23+
profile: minimal
24+
override: true
25+
- uses: actions-rs/[email protected]
26+
with:
27+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)