Skip to content

[PM-5693] CryptoService using memfd_secret on Linux #344

[PM-5693] CryptoService using memfd_secret on Linux

[PM-5693] CryptoService using memfd_secret on Linux #344

---
name: Test for memory leaks
on:
pull_request:
paths:
- "crates/bitwarden-crypto/**"
- "crates/memory-testing/**"
push:
paths:
- "crates/bitwarden-crypto/**"
- "crates/memory-testing/**"
branches:
- "main"
- "rc"
- "hotfix-rc"
jobs:
memory-test:
name: Testing
runs-on: ubuntu-22.04
steps:
- name: Check out repo
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: Set up gdb
run: |
sudo apt update
sudo apt -y install gdb
- name: Install rust
uses: dtolnay/rust-toolchain@7b1c307e0dcbda6122208f10795a713336a9b35a # stable
with:
toolchain: stable
- name: Cache cargo registry
uses: Swatinem/rust-cache@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # v2.7.3
with:
key: memtest-cargo
- name: Test
run: ./crates/memory-testing/run_test.sh no-docker