From cb6b1d666be1544384d2f0b4fb1a1a5ab094731c Mon Sep 17 00:00:00 2001 From: Tellsanguis Date: Fri, 7 Nov 2025 10:13:09 +0100 Subject: [PATCH] fix(ci): Resolve dependency issues in workflow --- .forgejo/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/ci.yml b/.forgejo/workflows/ci.yml index a72cb61..e52061c 100644 --- a/.forgejo/workflows/ci.yml +++ b/.forgejo/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - name: Setup OpenTofu run: | if ! command -v tofu &> /dev/null; then - curl -fsSL https://get.opentofu.org/install-opentofu.sh | bash -s -- --install-method standalone + curl -fsSL https://get.opentofu.org/install-opentofu.sh | bash -s -- --install-method standalone --opentofu-version 1.10.7 fi - name: Terraform Format Check @@ -63,7 +63,7 @@ jobs: run: | if ! command -v ansible &> /dev/null; then apt-get update - apt-get install -y ansible + apt-get install -y ansible python3-pip fi - name: Ansible Syntax Check @@ -128,6 +128,8 @@ jobs: - name: Install Trivy run: | if ! command -v trivy &> /dev/null; then + apt-get update + apt-get install -y lsb-release wget -qO - https://aquasecurity.github.io/trivy-repo/deb/public.key | apt-key add - echo "deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | tee -a /etc/apt/sources.list.d/trivy.list apt-get update