name: autofix on: push: workflow_dispatch: jobs: fix: runs-on: debian steps: - name: Nuclear fix - absolute path control run: | echo "=== FIX NUCLEAR FIX ===" # Force absolute workspace rm -rf /opt/gitea-runner/workspace mkdir -p /opt/gitea-runner/workspace cd /opt/gitea-runner/workspace git clone https://gitea.bubuit.net/oib/aitbc.git repo cd repo echo "Repo PWD: $(pwd)" echo "Looking for package.json..." ls -la package.json if [ -f "package.json" ]; then echo "✅ Installing dependencies..." npm install echo "✅ Auto-fixing vulnerabilities..." npm audit fix || true else echo "❌ package.json NOT found!" exit 1 fi