Skip to content
This repository was archived by the owner on Jun 11, 2025. It is now read-only.

ci: adapt paths filtering #2

ci: adapt paths filtering

ci: adapt paths filtering #2

name: Coprocessor Dependency analysis
on:
pull_request:
concurrency:
group: deps-analysis-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
check-changes:
permissions:
actions: 'read'
contents: 'read'
pull-requests: 'read'
runs-on: ubuntu-latest
outputs:
changes-rust-files: ${{ steps.filter.outputs.rust-files }}
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: filter
with:
filters: |
rust-files:
- .github/workflows/coprocessor-dependency-analysis.yml
- fhevm-engine/**
dependencies-check:
needs: check-changes
if: ${{ needs.check-changes.outputs.changes-rust-files == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: 'false'
- name: Rust setup
uses: dtolnay/rust-toolchain@a54c7afa936fefeb4456b2dd8068152669aa8203 # v1
with:
toolchain: stable
- name: Install cargo-binstall
uses: cargo-bins/cargo-binstall@84ca29d5c1719e79e23b6af147555a8f4dac79d6 # v1.10.14
- name: Install cargo tools
run: |
cargo binstall --no-confirm --force \
cargo-audit@0.21.0 \
cargo-deny@0.16.2
- name: Check that Cargo.lock is the source of truth
run: |
cd fhevm-engine
cargo update -w --locked || (echo "Error: Cargo.lock is out of sync. Please run 'cargo update' locally and commit changes" && exit 1)
- name: License whitelist
run: |
cd fhevm-engine
cargo-deny deny check license --deny license-not-encountered
- name: Security issue whitelist
run: |
cd fhevm-engine
cargo-audit audit
permissions:
contents: read
checks: write