forked from PinSpace-Org/GistPin
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontract-audit.yml
More file actions
36 lines (29 loc) 路 870 Bytes
/
Copy pathcontract-audit.yml
File metadata and controls
36 lines (29 loc) 路 870 Bytes
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
name: Contract Audit Pipeline
on:
pull_request:
paths:
- "contracts/**"
- "infrastructure/ci/contract-audit.yml"
- "infrastructure/ci/scripts/audit-contracts.sh"
- "infrastructure/ci/audit-config.toml"
workflow_dispatch:
permissions:
contents: read
jobs:
contract-audit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
- name: Install cargo-audit
run: cargo install cargo-audit --locked
- name: Run contract audit pipeline
run: bash infrastructure/ci/scripts/audit-contracts.sh
- name: Upload audit reports
if: always()
uses: actions/upload-artifact@v4
with:
name: contract-audit-reports
path: infrastructure/ci/reports