Skip to content

Commit 87eb66e

Browse files
Zie619claude
andcommitted
fix: resolve remaining CI/CD issues
Fixed multiple CI/CD failures: 🐳 Docker Multi-Platform Build: - Removed pinned pip/setuptools/wheel versions for ARM64 compatibility - Now using latest versions which have better ARM64 support - This should fix: "buildx failed with: ERROR: failed to build" 🔒 Security Scan: - Added required permissions to security job: - security-events: write (for SARIF upload) - contents: read - actions: read - This fixes: "Resource not accessible by integration" 📄 GitHub Pages Deploy: - Disabled redundant deploy-pages.yml workflow - The working pages-deploy.yml already handles deployment - Removed dependency on missing scripts (create_categories.py) - This fixes: "Deploy GitHub Pages / build" failure All test jobs are now passing (3.9, 3.10, 3.11) ✅ 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 346ea28 commit 87eb66e

File tree

3 files changed

+11
-12
lines changed

3 files changed

+11
-12
lines changed

.github/workflows/ci-cd.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,10 @@ jobs:
8585
needs: test
8686
# Don't fail the workflow if Trivy finds issues
8787
continue-on-error: true
88+
permissions:
89+
contents: read
90+
security-events: write
91+
actions: read
8892

8993
steps:
9094
- name: Checkout code

.github/workflows/deploy-pages.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
1-
name: Deploy GitHub Pages
1+
name: Deploy GitHub Pages (Legacy - Disabled)
22

3+
# This workflow is disabled - using pages-deploy.yml instead
4+
# The docs folder already contains pre-built static files
35
on:
4-
push:
5-
branches: [ main ]
6-
paths:
7-
- 'workflows/**'
8-
- 'docs/**'
9-
- 'scripts/**'
10-
- 'workflow_db.py'
11-
- 'create_categories.py'
12-
workflow_dispatch: # Allow manual triggering
6+
workflow_dispatch: # Only allow manual triggering
137

148
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
159
permissions:

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ RUN chown -R appuser:appuser /app
3434
COPY --chown=appuser:appuser requirements.txt .
3535

3636
# Install Python dependencies with security hardening
37-
RUN python -m pip install --no-cache-dir --upgrade pip==24.3.1 setuptools==75.3.0 wheel==0.44.0 && \
38-
python -m pip install --no-cache-dir --no-compile -r requirements.txt && \
37+
# Use pip without pinning versions for better ARM64 compatibility
38+
RUN python -m pip install --no-cache-dir --upgrade pip setuptools wheel && \
39+
python -m pip install --no-cache-dir -r requirements.txt && \
3940
find /usr/local -type f -name '*.pyc' -delete && \
4041
find /usr/local -type d -name '__pycache__' -delete
4142

0 commit comments

Comments
 (0)