Fix: Use node image with mounted docker socket
Some checks failed
Infrastructure Audit / audit (push) Failing after 1s
Some checks failed
Infrastructure Audit / audit (push) Failing after 1s
This commit is contained in:
@@ -6,15 +6,20 @@ jobs:
|
|||||||
audit:
|
audit:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
container:
|
||||||
image: docker:cli # Використовуємо образ з Docker клієнтом!
|
# Використовуємо образ, де точно є Node.js (щоб працював checkout)
|
||||||
volumes:
|
image: node:16-bullseye
|
||||||
- /var/run/docker.sock:/var/run/docker.sock # Даємо доступ до докера хоста
|
# Прокидаємо сокет хоста, щоб бачити реальні контейнери
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||||||
steps:
|
steps:
|
||||||
- name: 📥 Check out repository
|
- name: 📥 Check out repository
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
- name: 🐍 Run Audit Script
|
- name: 🛠️ Setup Tools
|
||||||
# Встановлюємо python прямо в docker контейнері
|
|
||||||
run: |
|
run: |
|
||||||
apk add --no-cache python3
|
# Встановлюємо Docker CLI та Python
|
||||||
python3 audit.py
|
apt-get update
|
||||||
|
apt-get install -y docker.io python3
|
||||||
|
|
||||||
|
- name: 🐍 Run Audit Script
|
||||||
|
run: python3 audit.py
|
||||||
|
|||||||
Reference in New Issue
Block a user