Fix Gitea Actions compatibility and improve container configuration
Some checks failed
Some checks failed
- Update all GitHub Actions to v3 for Gitea compatibility - Fix artifact upload/download actions (v4 -> v3) - Remove GitHub-specific features (GITHUB_STEP_SUMMARY) - Add complete Docker Compose configuration with PostgreSQL and Redis - Add environment secrets support for all workflows - Add debug workflow for secrets verification - Add comprehensive documentation for secrets setup - Improve container networking and health checks
This commit is contained in:
@@ -13,10 +13,10 @@ jobs:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '20'
|
||||
cache: 'npm'
|
||||
@@ -52,7 +52,7 @@ jobs:
|
||||
fi
|
||||
|
||||
- name: Upload security scan results
|
||||
uses: actions/upload-artifact@v4
|
||||
uses: actions/upload-artifact@v3
|
||||
if: always()
|
||||
with:
|
||||
name: security-scan-results
|
||||
@@ -63,16 +63,16 @@ jobs:
|
||||
|
||||
- name: Security scan summary
|
||||
run: |
|
||||
echo "## Security Scan Summary" >> $GITHUB_STEP_SUMMARY
|
||||
echo "### NPM Audit Results" >> $GITHUB_STEP_SUMMARY
|
||||
echo "## Security Scan Summary"
|
||||
echo "### NPM Audit Results"
|
||||
if [ -f npm-audit-results.json ]; then
|
||||
echo "✅ NPM audit completed" >> $GITHUB_STEP_SUMMARY
|
||||
echo "✅ NPM audit completed"
|
||||
else
|
||||
echo "❌ NPM audit failed" >> $GITHUB_STEP_SUMMARY
|
||||
echo "❌ NPM audit failed"
|
||||
fi
|
||||
echo "### Trivy Results" >> $GITHUB_STEP_SUMMARY
|
||||
echo "### Trivy Results"
|
||||
if [ -f trivy-results.txt ]; then
|
||||
echo "✅ Trivy scan completed" >> $GITHUB_STEP_SUMMARY
|
||||
echo "✅ Trivy scan completed"
|
||||
else
|
||||
echo "❌ Trivy scan failed" >> $GITHUB_STEP_SUMMARY
|
||||
echo "❌ Trivy scan failed"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user