pypi #2
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: EEG Scan | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| jobs: | |
| scan: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Scan benchmark fixture (SARIF) | |
| run: | | |
| python -m eeg scan fixtures/vulnerable-agent \ | |
| --profile code \ | |
| --format sarif \ | |
| --output eeg-results.sarif \ | |
| --fail-on none | |
| - name: Upload SARIF artifact | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: eeg-sarif | |
| path: eeg-results.sarif | |
| if-no-files-found: error | |
| - name: Run unit tests | |
| run: python manage.py test tests.test_cli tests.test_sarif tests.test_scan_fixtures tests.test_catalog_loader -v 2 |