mirror of
https://github.com/blackboxprogramming/remember.git
synced 2026-03-17 07:57:26 -05:00
sync: update from blackroad-operator 2026-03-14
Synced from BlackRoad-OS-Inc/blackroad-operator/orgs/personal/remember BlackRoad OS — Pave Tomorrow. RoadChain-SHA2048: de497960b2bf455e RoadChain-Identity: alexa@sovereign RoadChain-Full: de497960b2bf455eef9af5db0cd022d8b6c36461a5d504e8bdf54646405ae14b684d135ff94bfa57c47ba0c4fd8a1c9a01c94fcf02df1fb83d796610ab1cb3d01c9a9bcb53f84685e609c1fffafb3f3b0c7c210cb4b4eb9a2c80c5d95a9ab0738640af71682aab465283c5c4c42b186f01f0810ce0bde2b00a4c2ebfc1e25c4f3309de5d6b869d2f0c41da1bd604adf433413246cd0971fd1b2c5d731323c73fdaad6203bf667cbbe0554f5f77fd7ba96e7efe0abc468e7535d79dc185073c1590fef6f279342b4b25f549ccb2d574006a93591d831de73c666bb5ffce4cabc1393dc2c7fbdbf03595058bea8a30fa39a8dd644dd04ae900a8e3bf059c63d894
This commit is contained in:
1
.github/FUNDING.yml
vendored
1
.github/FUNDING.yml
vendored
@@ -1 +0,0 @@
|
||||
github: blackboxprogramming
|
||||
43
.github/dependabot.yml
vendored
43
.github/dependabot.yml
vendored
@@ -1,43 +0,0 @@
|
||||
version: 2
|
||||
updates:
|
||||
# npm dependencies
|
||||
- package-ecosystem: "npm"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "monday"
|
||||
open-pull-requests-limit: 10
|
||||
reviewers:
|
||||
- "blackboxprogramming"
|
||||
labels:
|
||||
- "dependencies"
|
||||
- "automated"
|
||||
commit-message:
|
||||
prefix: "chore"
|
||||
include: "scope"
|
||||
|
||||
# GitHub Actions
|
||||
- package-ecosystem: "github-actions"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "monday"
|
||||
open-pull-requests-limit: 5
|
||||
labels:
|
||||
- "dependencies"
|
||||
- "github-actions"
|
||||
commit-message:
|
||||
prefix: "ci"
|
||||
|
||||
# pip dependencies
|
||||
- package-ecosystem: "pip"
|
||||
directory: "/"
|
||||
schedule:
|
||||
interval: "weekly"
|
||||
day: "monday"
|
||||
open-pull-requests-limit: 10
|
||||
labels:
|
||||
- "dependencies"
|
||||
- "python"
|
||||
commit-message:
|
||||
prefix: "chore"
|
||||
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -1,8 +0,0 @@
|
||||
name: CI
|
||||
on: [push, pull_request]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: echo "Build steps pending"
|
||||
52
.github/workflows/deploy.yml
vendored
Normal file
52
.github/workflows/deploy.yml
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
name: Deploy to Cloudflare Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master]
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
||||
- name: Brand Compliance Check
|
||||
run: |
|
||||
echo "🎨 Checking BlackRoad brand compliance..."
|
||||
if grep -r "#FF9D00\|#FF6B00\|#FF0066\|#FF006B\|#D600AA\|#7700FF\|#0066FF" . \
|
||||
--include="*.html" --include="*.css" --include="*.js" --include="*.jsx" --include="*.tsx" 2>/dev/null; then
|
||||
echo "❌ FORBIDDEN COLORS FOUND! Must use official BlackRoad colors:"
|
||||
echo " ✅ Hot Pink: #FF1D6C"
|
||||
echo " ✅ Amber: #F5A623"
|
||||
echo " ✅ Electric Blue: #2979FF"
|
||||
echo " ✅ Violet: #9C27B0"
|
||||
exit 1
|
||||
fi
|
||||
echo "✅ Brand compliance check passed"
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '18'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
if [ -f "package.json" ]; then
|
||||
npm install
|
||||
fi
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
if [ -f "package.json" ] && grep -q '"build"' package.json; then
|
||||
npm run build
|
||||
fi
|
||||
|
||||
- name: Deploy to Cloudflare Pages
|
||||
if: github.ref == 'refs/heads/main' || github.ref == 'refs/heads/master'
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
run: |
|
||||
echo "🚀 Would deploy to Cloudflare Pages here"
|
||||
echo " (Requires org secrets: CLOUDFLARE_API_TOKEN, CLOUDFLARE_ACCOUNT_ID)"
|
||||
33
.github/workflows/security-scan.yml
vendored
33
.github/workflows/security-scan.yml
vendored
@@ -1,33 +0,0 @@
|
||||
name: "🔒 Security Scan"
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master]
|
||||
pull_request:
|
||||
branches: [main, master]
|
||||
schedule:
|
||||
- cron: '0 6 * * 1'
|
||||
|
||||
jobs:
|
||||
security:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Check for secrets
|
||||
run: |
|
||||
echo "Scanning for potential secrets..."
|
||||
! grep -rn 'AKIA\|sk-\|ghp_\|gho_\|password\s*=' --include='*.js' --include='*.py' --include='*.env' --include='*.sh' . 2>/dev/null || echo "Review above matches"
|
||||
echo "✅ Security scan complete"
|
||||
|
||||
- name: Check dependencies
|
||||
run: |
|
||||
if [ -f "package.json" ]; then
|
||||
npm install --ignore-scripts 2>/dev/null
|
||||
npm audit --audit-level=high 2>/dev/null || true
|
||||
fi
|
||||
if [ -f "requirements.txt" ]; then
|
||||
pip install safety 2>/dev/null
|
||||
safety check -r requirements.txt 2>/dev/null || true
|
||||
fi
|
||||
echo "✅ Dependency check complete"
|
||||
86
.github/workflows/self-healing.yml
vendored
86
.github/workflows/self-healing.yml
vendored
@@ -1,86 +0,0 @@
|
||||
name: 🔧 Self-Healing
|
||||
|
||||
on:
|
||||
schedule:
|
||||
- cron: '*/30 * * * *' # Every 30 minutes
|
||||
workflow_dispatch:
|
||||
workflow_run:
|
||||
workflows: ["🚀 Auto Deploy"]
|
||||
types: [completed]
|
||||
|
||||
jobs:
|
||||
monitor:
|
||||
name: Monitor Deployments
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Check Health
|
||||
id: health
|
||||
run: |
|
||||
if [ ! -z "${{ secrets.DEPLOY_URL }}" ]; then
|
||||
STATUS=$(curl -s -o /dev/null -w "%{http_code}" ${{ secrets.DEPLOY_URL }}/api/health || echo "000")
|
||||
echo "status=$STATUS" >> $GITHUB_OUTPUT
|
||||
else
|
||||
echo "status=skip" >> $GITHUB_OUTPUT
|
||||
fi
|
||||
|
||||
- name: Auto-Rollback
|
||||
if: steps.health.outputs.status != '200' && steps.health.outputs.status != 'skip'
|
||||
run: |
|
||||
echo "🚨 Health check failed (Status: ${{ steps.health.outputs.status }})"
|
||||
echo "Triggering rollback..."
|
||||
gh workflow run auto-deploy.yml --ref $(git rev-parse HEAD~1)
|
||||
env:
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
|
||||
- name: Attempt Auto-Fix
|
||||
if: steps.health.outputs.status != '200' && steps.health.outputs.status != 'skip'
|
||||
run: |
|
||||
echo "🔧 Attempting automatic fixes..."
|
||||
# Check for common issues
|
||||
if [ -f "package.json" ]; then
|
||||
npm ci || true
|
||||
npm run build || true
|
||||
fi
|
||||
|
||||
- name: Create Issue on Failure
|
||||
if: failure()
|
||||
uses: actions/github-script@v8
|
||||
with:
|
||||
script: |
|
||||
github.rest.issues.create({
|
||||
owner: context.repo.owner,
|
||||
repo: context.repo.repo,
|
||||
title: '🚨 Self-Healing: Deployment Health Check Failed',
|
||||
body: `Deployment health check failed.\n\nStatus: ${{ steps.health.outputs.status }}\nWorkflow: ${context.workflow}\nRun: ${context.runId}`,
|
||||
labels: ['bug', 'deployment', 'auto-generated']
|
||||
})
|
||||
|
||||
dependency-updates:
|
||||
name: Auto Update Dependencies
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup Node
|
||||
if: hashFiles('package.json') != ''
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Update npm dependencies
|
||||
if: hashFiles('package.json') != ''
|
||||
run: |
|
||||
npm update
|
||||
if [ -n "$(git status --porcelain)" ]; then
|
||||
git config user.name "BlackRoad Bot"
|
||||
git config user.email "bot@blackroad.io"
|
||||
git add package*.json
|
||||
git commit -m "chore: auto-update dependencies"
|
||||
git push
|
||||
fi
|
||||
Reference in New Issue
Block a user