name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
RUSTFLAGS: -Dwarnings
jobs:
fmt:
name: Format
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
path: 4n6mount
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --check
working-directory: 4n6mount
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update && sudo apt-get install -y libfuse3-dev pkg-config
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
path: 4n6mount
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/ext4fs-forensic
path: ext4fs-forensic
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/ewf
path: ewf
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/iso9660-forensic
path: iso9660-forensic
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/vmdk-forensic
path: vmdk-forensic
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 - run: cargo clippy --all-targets --locked -- -D warnings
working-directory: 4n6mount
test:
name: Test
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update && sudo apt-get install -y libfuse3-dev pkg-config
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
path: 4n6mount
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/ext4fs-forensic
path: ext4fs-forensic
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/ewf
path: ewf
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/iso9660-forensic
path: iso9660-forensic
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/vmdk-forensic
path: vmdk-forensic
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 - run: cargo test --locked
working-directory: 4n6mount
msrv:
name: MSRV (1.85)
runs-on: ubuntu-latest
steps:
- run: sudo apt-get update && sudo apt-get install -y libfuse3-dev pkg-config
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
path: 4n6mount
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/ext4fs-forensic
path: ext4fs-forensic
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/ewf
path: ewf
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/iso9660-forensic
path: iso9660-forensic
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/vmdk-forensic
path: vmdk-forensic
- uses: dtolnay/rust-toolchain@1.85
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 - run: cargo test --locked
working-directory: 4n6mount
deny:
name: Cargo Deny
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
path: 4n6mount
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/ext4fs-forensic
path: ext4fs-forensic
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/ewf
path: ewf
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/iso9660-forensic
path: iso9660-forensic
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/vmdk-forensic
path: vmdk-forensic
- uses: dtolnay/rust-toolchain@stable
- uses: taiki-e/install-action@15449e3094499af05d8d964a1c884208e4b8b595 with:
tool: cargo-deny
- run: cargo deny --locked check
working-directory: 4n6mount
secrets:
name: Secret Scan (gitleaks)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
fetch-depth: 0
- name: Install gitleaks
run: |
set -euo pipefail
VERSION=8.30.1
curl -sSL "https://github.com/gitleaks/gitleaks/releases/download/v${VERSION}/gitleaks_${VERSION}_linux_x64.tar.gz" \
| tar -xz -C /usr/local/bin gitleaks
gitleaks version
- run: gitleaks detect --source . --redact --no-banner -v
geiger:
name: Unsafe Audit (cargo-geiger)
runs-on: ubuntu-latest
continue-on-error: true
steps:
- run: sudo apt-get update && sudo apt-get install -y libfuse3-dev pkg-config
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
path: 4n6mount
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/ext4fs-forensic
path: ext4fs-forensic
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/ewf
path: ewf
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/iso9660-forensic
path: iso9660-forensic
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 with:
repository: ${{ github.repository_owner }}/vmdk-forensic
path: vmdk-forensic
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 - run: cargo install cargo-geiger --locked
- run: cargo geiger 2>&1 || true
working-directory: 4n6mount