Files
aitbc/.gitea/workflows/fix.yml
aitbc1 c51d0d4d80
Some checks failed
/ audit (push) Failing after 4s
ci-cd / build (push) Failing after 5s
ci / build (push) Failing after 5s
autofix / fix (push) Failing after 1s
security-scanning / audit (push) Failing after 3s
test / test (push) Successful in 5s
ci-cd / deploy (push) Has been skipped
fix: implement aggressive nuclear fix with absolute paths
CRITICAL: Complete bypass of act_runner workspace handling

Issue:
- Runner still executing in hostexecutor despite workdir config
- npm install failing with ENOENT for package.json
- act_runner cache not cleared properly

Aggressive Nuclear Fix:
- Clear runner cache completely: rm -rf /opt/gitea-runner/.cache
- Force absolute workspace path: /opt/gitea-runner/workspace
- Complete workspace recreation each run
- Extensive debugging and verification
- Exit with error if package.json not found

Updated workflows:
- test.yml: Comprehensive nuclear fix with full debugging
- audit.yml: Nuclear fix for dependency auditing
- fix.yml: Nuclear fix for vulnerability fixing

This should finally bypass all act_runner host mode issues
by forcing absolute paths and complete workspace control.
2026-03-27 12:45:09 +01:00

37 lines
902 B
YAML

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