Skip to content

feat: standardised Soroban rule execution pipeline #238

feat: standardised Soroban rule execution pipeline

feat: standardised Soroban rule execution pipeline #238

Workflow file for this run

name: GasGuard Contract Scanning
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
scan:
name: GasGuard Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Cache cargo registry
uses: actions/cache@v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ runner.os }}-cargo-${{ hashFiles('Cargo.lock') }}
restore-keys: |
${{ runner.os }}-cargo-
- name: Install GasGuard
run: |
cargo install --force --path apps/api --bin gasguard
- name: Run GasGuard Scan
run: |
gasguard scan-dir . --format json > gasguard-report.json
- name: Upload Scan Results
uses: actions/upload-artifact@v4
if: always()
with:
name: gasguard-scan-report
path: gasguard-report.json
retention-days: 30