Skip to content

Update Sentinel & DEPLOYMENT_GUIDE #8

Update Sentinel & DEPLOYMENT_GUIDE

Update Sentinel & DEPLOYMENT_GUIDE #8

Workflow file for this run

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: Install Sentinel
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-cicd.git@main
- name: Execute Security Scan
id: scan_step
env:
SENTINEL_ADMIN_REPO: 'DataWizual/sentinel-cicd'
SENTINEL_ALERT_TOKEN: ${{ secrets.SENTINEL_ALERT_TOKEN }}
run: sentinel scan . --report
continue-on-error: true
- name: Upload Security Report
if: steps.scan_step.outcome == 'failure'
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08
with:
name: sentinel-security-report
path: sentinel_report.html
retention-days: 7
- name: Terminate on Failure
if: steps.scan_step.outcome == 'failure'
run: exit 1