From bb7e74407d3936d02f98a68d06b2b59c8073123e Mon Sep 17 00:00:00 2001 From: Martin Schurz Date: Thu, 24 Jul 2025 11:32:50 +0200 Subject: [PATCH] Use fixed test env for BSD VMs Signed-off-by: Martin Schurz --- .github/workflows/ssh_hardening_bsd.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ssh_hardening_bsd.yml b/.github/workflows/ssh_hardening_bsd.yml index e4b5598f..6a28bc6e 100644 --- a/.github/workflows/ssh_hardening_bsd.yml +++ b/.github/workflows/ssh_hardening_bsd.yml @@ -46,11 +46,22 @@ jobs: path: ansible_collections/devsec/hardening submodules: true + - name: Install dependencies + run: | + source ~/.venv/ansible-collection-hardening/bin/activate + python -m pip install --no-cache-dir --upgrade pip + pip install -r requirements.txt + pip install python-vagrant + working-directory: ansible_collections/devsec/hardening + - name: Update Vagrant Box - run: vagrant box update --box generic/${{ matrix.molecule_distro }} || true + run: | + vagrant box update --box generic/${{ matrix.molecule_distro }} || true - name: Test with molecule - run: molecule test -s ssh_hardening_bsd + run: | + source ~/.venv/ansible-collection-hardening/bin/activate + molecule test -s ssh_hardening_bsd env: MOLECULE_DISTRO: ${{ matrix.molecule_distro }} working-directory: ansible_collections/devsec/hardening