Skip to content

Create vial-mcp.js

Create vial-mcp.js #99

Workflow file for this run

name: CI/CD Pipeline
on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: '0 0 1 */3 *' # Run quarterly on the 1st day of every 3rd month
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
pip install -r main/api/mcp/requirements.txt
npm install
- name: Run tests
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
run: pytest main/api/mcp/tests/
- name: Validate agent code
run: python main/api/mcp/lib/code_validator.py main/api/mcp/tools/agent_templates.py
security_scan:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run OWASP ZAP Baseline Scan
uses: zaproxy/[email protected]
with:
target: 'https://webxos.netlify.app'
cmd_options: '-z "-config scanner.level=LOW"'
penetration_test:
runs-on: ubuntu-latest
if: github.event_name == 'schedule'
steps:
- uses: actions/checkout@v3
- name: Run OWASP ZAP Full Scan
uses: zaproxy/[email protected]
with:
target: 'https://webxos.netlify.app'
cmd_options: '-r pen_test_report.html'
- name: Upload Penetration Test Report
uses: actions/upload-artifact@v3
with:
name: pen-test-report
path: pen_test_report.html
deploy:
needs: [test, security_scan]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v3
- name: Install Netlify CLI
run: npm install -g netlify-cli
- name: Deploy to Netlify
env:
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
GITHUB_CLIENT_ID: ${{ secrets.GITHUB_CLIENT_ID }}
GITHUB_CLIENT_SECRET: ${{ secrets.GITHUB_CLIENT_SECRET }}
REDIS_URL: ${{ secrets.REDIS_URL }}
SMTP_SERVER: ${{ secrets.SMTP_SERVER }}
SMTP_PORT: ${{ secrets.SMTP_PORT }}
SMTP_USER: ${{ secrets.SMTP_USER }}
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}
ALERT_EMAIL: ${{ secrets.ALERT_EMAIL }}
run: netlify deploy --prod --dir=main/frontend/public