Skip to content

Security: harden CI against supply chain attacks #19

Security: harden CI against supply chain attacks

Security: harden CI against supply chain attacks #19

Workflow file for this run

name: CI
permissions: read-all
on:
push:
branches: [master]
pull_request:
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- run: sudo apt-get install -y libdbus-1-dev
- uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ github.ref == 'refs/heads/master' && 'master' || 'pr' }}-${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ github.ref == 'refs/heads/master' && 'master' || 'pr' }}-${{ runner.os }}-cargo-
- run: cargo test