Skip to content

deps: Remediate two CVEs by updating astral-tokio-tar to 0.6.1 #1442

deps: Remediate two CVEs by updating astral-tokio-tar to 0.6.1

deps: Remediate two CVEs by updating astral-tokio-tar to 0.6.1 #1442

name: trustee-attester basic build
on:
pull_request:
paths:
- 'attestation-agent/**'
- '.github/workflows/trustee-attester.yml'
- 'Cargo.toml'
- 'Cargo.lock'
create:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
trustee_attester_ci:
name: Check
defaults:
run:
working-directory: ./attestation-agent/kbs_protocol/
strategy:
fail-fast: false
matrix:
instance:
- ubuntu-24.04
- ubuntu-24.04-s390x
- ubuntu-24.04-arm
include:
- instance: ubuntu-24.04
cargo_test_opts: "-p kbs_protocol --bin trustee-attester --no-default-features --features background_check,passport,openssl,all-attesters,bin"
- instance: ubuntu-24.04-s390x
cargo_test_opts: "-p kbs_protocol --bin trustee-attester --no-default-features --features background_check,passport,openssl,se-attester,bin"
- instance: ubuntu-24.04-arm
cargo_test_opts: "-p kbs_protocol --bin trustee-attester --no-default-features --features background_check,passport,openssl,cca-attester,bin"
runs-on: ${{ matrix.instance }}
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@8d3c67de8e2fe68ef647c8db1e6a09f647780f40 # v2.19.0
with:
egress-policy: audit
- name: Code checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 1
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@2b1f5e9b395427c92ee4e3331786ca3c37afe2d7 # v1.16.0
with:
components: rustfmt, clippy
- name: Install TPM dependencies
run: |
sudo apt-get update
sudo apt-get install -y libtss2-dev
if: matrix.instance == 'ubuntu-24.04'
- name: Install dm-verity dependencies
run: |
sudo apt-get update
sudo apt-get install -y libdevmapper-dev
- name: Run cargo build
run: cargo build ${{ matrix.cargo_test_opts }}
- name: Run cargo test
run: cargo test ${{ matrix.cargo_test_opts }}
- name: Run cargo fmt check
run: cargo fmt --all -- --check
- name: Run rust clippy
run: cargo clippy ${{ matrix.cargo_test_opts }}