Fix/idor auth Fix IDOR and Broken Authentication Vulnerability on Protected Endpoints #352
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| workflow_dispatch: | |
| push: | |
| branches: ["main", "master"] | |
| pull_request: | |
| branches: ["main", "master"] | |
| jobs: | |
| lint: | |
| name: Lint (ruff) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Cache pip dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('backend/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| run: | | |
| cd backend | |
| pip install -r requirements.txt | |
| - name: Run ruff lint check | |
| run: | | |
| cd backend | |
| python -m ruff check . | |
| test: | |
| name: Test (pytest) | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| env: | |
| GEMINI_API_KEY: test-gemini-key | |
| DEVTO_API_KEY: test-devto-key | |
| TWILIO_ACCOUNT_SID: test-twilio-sid | |
| TWILIO_AUTH_TOKEN: test-twilio-token | |
| TWILIO_PHONE_NUMBER: "+10000000000" | |
| MONGODB_URI: mongodb://localhost:27017/test | |
| ELEVENLABS_API_KEY: test-elevenlabs-key | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Cache pip dependencies | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('backend/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| run: | | |
| cd backend | |
| pip install -r requirements.txt | |
| - name: Run pytest | |
| run: | | |
| cd backend | |
| python -m pytest -v |