Fix: Install latest Docker CLI binary manually
All checks were successful
Infrastructure Audit / audit (push) Successful in 26s
All checks were successful
Infrastructure Audit / audit (push) Successful in 26s
This commit is contained in:
@@ -6,8 +6,6 @@ jobs:
|
||||
audit:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
# Використовуємо образ Node (щоб працював checkout)
|
||||
# Секцію volumes ми ПРИБРАЛИ, бо Runner робить це сам
|
||||
image: node:16-bullseye
|
||||
steps:
|
||||
- name: 📥 Check out repository
|
||||
@@ -15,9 +13,21 @@ jobs:
|
||||
|
||||
- name: 🛠️ Setup Tools
|
||||
run: |
|
||||
# Встановлюємо Docker CLI (щоб говорити з сокетом, який вже там є)
|
||||
apt-get update
|
||||
apt-get install -y docker.io python3
|
||||
# Встановлюємо Python
|
||||
apt-get update && apt-get install -y python3 curl tar
|
||||
|
||||
# Завантажуємо НАЙНОВІШИЙ Docker CLI вручну (Static Binary)
|
||||
echo "⬇️ Downloading latest Docker CLI..."
|
||||
curl -fsSL https://download.docker.com/linux/static/stable/x86_64/docker-26.1.3.tgz -o docker.tgz
|
||||
|
||||
# Розпаковуємо і встановлюємо
|
||||
tar xzvf docker.tgz
|
||||
mv docker/docker /usr/local/bin/docker
|
||||
chmod +x /usr/local/bin/docker
|
||||
rm -rf docker docker.tgz
|
||||
|
||||
# Перевіряємо версію
|
||||
docker --version
|
||||
|
||||
- name: 🐍 Run Audit Script
|
||||
run: python3 audit.py
|
||||
|
||||
Reference in New Issue
Block a user