Files
aitbc/.gitea
aitbc1 0a2d7002c2
Some checks failed
audit / audit (push) Failing after 2s
ci-cd / build (push) Failing after 5s
ci / build (push) Failing after 2s
autofix / fix (push) Failing after 2s
test / test (push) Successful in 2s
ci-cd / deploy (push) Has been skipped
security-scanning / audit (push) Failing after 1s
fix: handle Python project correctly in workflows
BREAKTHROUGH: Nuclear fix is working! Repo successfully cloned to
/opt/gitea-runner/workspace/repo with all files present.

Issue: Workflows were looking for package.json in a Python project
Root cause: AITBC is a Python project (pyproject.toml + poetry.lock)
with minimal package.json for OpenZeppelin contracts only

Solution:
- Add project type detection in all workflows
- Handle both Node.js (package.json) and Python (pyproject.toml) projects
- For Python: install poetry, run 'poetry install'
- For Node.js: run 'npm install --legacy-peer-deps'
- Add appropriate security scanning for each project type
- Python: safety + bandit for security
- Node.js: npm audit for security

Updated workflows:
- audit.yml: Detects project type, runs appropriate tools
- fix.yml: Handles both Python and Node.js dependency fixes
- security-scanning.yml: Project-specific security scanning

This should resolve the 'package.json NOT found' error since the
workflows now properly detect and handle Python projects.
2026-03-27 12:53:45 +01:00
..