Skip to content

build(deps): bump regorus from 0.2.8 to 0.5.0 #1139

build(deps): bump regorus from 0.2.8 to 0.5.0

build(deps): bump regorus from 0.2.8 to 0.5.0 #1139

Workflow file for this run

name: CoCo-AS Rust Suites
on:
push:
branches:
- "main"
paths:
- 'attestation-service/**'
- 'rvps'
- 'deps/verifier'
- 'deps/key-value-storage'
- 'deps/policy-engine'
- '.github/workflows/as_rust.yml'
- 'Cargo.toml'
pull_request:
paths:
- 'attestation-service/**'
- 'rvps'
- 'deps/verifier'
- 'deps/key-value-storage'
- 'deps/policy-engine'
- '.github/workflows/as_rust.yml'
- 'Cargo.toml'
create:
permissions:
contents: read
jobs:
basic_ci:
if: github.event_name == 'pull_request' || github.event_name == 'push'
name: Check
runs-on: ubuntu-24.04
steps:
- name: Code checkout
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 1
persist-credentials: false
- name: Install OPA command line tool
uses: open-policy-agent/setup-opa@950f159a49aa91f9323f36f1de81c7f6b5de9576 # v2.2.0 # v2
with:
version: latest
- name: OPA policy.rego fmt and check
working-directory: attestation-service
run: |
make opa-check
- name: Install protoc
run: |
sudo apt-get update && sudo apt-get install -y protobuf-compiler libprotobuf-dev
- name: Install TPM build dependencies
run: |
sudo apt-get update
sudo apt-get install -y libtss2-dev
- name: Install TDX build dependencies
run: |
curl -L https://download.01.org/intel-sgx/sgx_repo/ubuntu/intel-sgx-deb.key | sudo gpg --dearmor --output /usr/share/keyrings/intel-sgx.gpg
echo 'deb [arch=amd64 signed-by=/usr/share/keyrings/intel-sgx.gpg] https://download.01.org/intel-sgx/sgx_repo/ubuntu noble main' | sudo tee /etc/apt/sources.list.d/intel-sgx.list
sudo apt-get update
sudo apt-get install -y libsgx-dcap-quote-verify-dev libsgx-dcap-default-qpl
- name: Install Rust toolchain
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
with:
components: rustfmt, clippy
- name: Build
working-directory: attestation-service
run: |
make
- name: Run cargo test
run: |
sudo -E PATH="$PATH" -s cargo test -p attestation-service -p reference-value-provider-service -p verifier -p eventlog -p key-value-storage -p policy-engine
- name: Run cargo fmt check
run: |
sudo -E PATH="$PATH" -s cargo fmt -p attestation-service -p reference-value-provider-service -p eventlog -p verifier -p key-value-storage -p policy-engine --check
- name: Run rust lint check
run: |
sudo -E PATH="$PATH" -s cargo clippy -p attestation-service -p reference-value-provider-service -p eventlog -p verifier -p key-value-storage -p policy-engine -- -D warnings -A clippy::derive_partial_eq_without_eq