mirror of
https://github.com/blackboxprogramming/BlackRoad-Operating-System.git
synced 2026-03-17 03:57:13 -05:00
ci: add GitHub Actions workflows
- Security scanning (CodeQL, dependency scan, secret scan) - Auto-deployment to Cloudflare/Railway - Self-healing with auto-rollback - Dependabot for dependency updates Deployed by: Phase 6 GitHub CI/CD automation
This commit is contained in:
55
.github/workflows/security-scan.yml
vendored
Normal file
55
.github/workflows/security-scan.yml
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
name: 🔒 Security Scan
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main, master, dev]
|
||||
pull_request:
|
||||
branches: [main, master]
|
||||
schedule:
|
||||
- cron: '0 0 * * 0'
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
security-events: write
|
||||
actions: read
|
||||
|
||||
jobs:
|
||||
codeql:
|
||||
name: CodeQL Analysis
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
language: ['javascript', 'typescript', 'python']
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Initialize CodeQL
|
||||
uses: github/codeql-action/init@v3
|
||||
with:
|
||||
languages: ${{ matrix.language }}
|
||||
|
||||
- name: Autobuild
|
||||
uses: github/codeql-action/autobuild@v3
|
||||
|
||||
- name: Perform CodeQL Analysis
|
||||
uses: github/codeql-action/analyze@v3
|
||||
|
||||
dependency-scan:
|
||||
name: Dependency Scan
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Run npm audit
|
||||
if: hashFiles('package.json') != ''
|
||||
run: npm audit --audit-level=moderate || true
|
||||
|
||||
- name: Dependency Review
|
||||
uses: actions/dependency-review-action@v4
|
||||
if: github.event_name == 'pull_request'
|
||||
Reference in New Issue
Block a user