File size: 1,004 Bytes
701dc8c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Sovereignty Guard Monitor πŸ›‘οΈ

on:
  push:
    paths:
      - "src/protocol/security/sovereignty_guard.py"
      - "src/**"
      - "README.md"
      - ".github/workflows/sovereignty-guard.yml"
  schedule:
    - cron: "0 */6 * * *"  # Every 6 hours
  workflow_dispatch:

jobs:
  run-guard:
    runs-on: ubuntu-latest

    steps:
      - name: πŸ”„ Checkout repo
        uses: actions/checkout@v3

      - name: 🐍 Set up Python
        uses: actions/setup-python@v4
        with:
          python-version: "3.11"

      - name: πŸ“¦ Install dependencies
        run: |
          python -m pip install --upgrade pip
          pip install -r requirements.txt || true  # Continue even if requirements.txt doesn't exist

      - name: πŸ›‘οΈ Run Sovereignty Guard
        run: |
          export PYTHONPATH=$PYTHONPATH:$(pwd)/src
          echo "PYTHONPATH is now: $PYTHONPATH"
          python src/protocol/security/sovereignty_guard.py || echo "πŸ›‘ Sovereignty Guard completed with warnings"