fix: implement aggressive nuclear fix with absolute paths
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
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
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.
This commit is contained in:
@@ -9,12 +9,28 @@ jobs:
|
||||
runs-on: debian
|
||||
|
||||
steps:
|
||||
- name: Full control execution (nuclear fix)
|
||||
- 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
|
||||
rm -rf repo
|
||||
|
||||
git clone https://gitea.bubuit.net/oib/aitbc.git repo
|
||||
cd repo
|
||||
npm install
|
||||
npm audit fix || true
|
||||
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user