Initial demo release #13
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: Sentinel Security Gate | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| security-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Code | |
| uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install Sentinel Core | |
| env: | |
| INSTALL_TOKEN: ${{ secrets.SENTINEL_INSTALL_TOKEN }} | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install git+https://x-access-token:${INSTALL_TOKEN}@github.com/DataWizual/sentinel-core-v2_1.git@main | |
| - name: Execute Security Scan | |
| id: scan_step | |
| env: | |
| SENTINEL_ADMIN_REPO: "DataWizual/sentinel-core-v2_1" | |
| SENTINEL_ALERT_TOKEN: ${{ secrets.SENTINEL_ALERT_TOKEN }} | |
| SENTINEL_LICENSE_KEY: ${{ secrets.SENTINEL_LICENSE_KEY }} | |
| AUDITOR_LICENSE_KEY: ${{ secrets.SENTINEL_LICENSE_KEY }} | |
| AUDITOR_LICENSE_SALT: ${{ secrets.AUDITOR_LICENSE_SALT }} | |
| GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
| GOOGLE_MODEL: "gemini-2.5-flash" | |
| run: sentinel scan . --report | |
| continue-on-error: true | |
| - name: Upload Security Report | |
| if: always() | |
| uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 | |
| with: | |
| name: sentinel-security-report | |
| path: reports/ | |
| retention-days: 7 | |
| - name: Terminate on Failure | |
| if: steps.scan_step.outcome == 'failure' | |
| run: exit 1 |