Updated database import documentation #55
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: security-compliance-gates | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: security-compliance-gates-${{ github.ref }} | |
| cancel-in-progress: true | |
| on: | |
| pull_request: | |
| branches: [ main ] | |
| push: | |
| branches: [ main ] | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 6 * * 1' | |
| jobs: | |
| backend-build-and-audit: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup .NET | |
| uses: actions/setup-dotnet@v5 | |
| with: | |
| dotnet-version: '10.0.x' | |
| - name: Restore | |
| run: dotnet restore IPOC_WEB.slnx | |
| - name: Build | |
| run: dotnet build IPOC_WEB.slnx --configuration Release | |
| - name: Backend package vulnerability audit (enforced) | |
| shell: pwsh | |
| run: ./scripts/compliance/check-dotnet-vulnerabilities.ps1 -ProjectPath "IPOC_WEB.Server/IPOC_WEB.Server.csproj" -FailOnSeverities "Critical","High" | |
| - name: TLS posture verification (enforced) | |
| shell: pwsh | |
| run: ./scripts/compliance/check-tls-posture.ps1 -ProgramPath "IPOC_WEB.Server/Program.cs" -OutputPath "security-compliance/controls/tls-posture-verification.md" | |
| - name: Endpoint compliance cycle (drift refresh) | |
| shell: pwsh | |
| run: ./scripts/compliance/run-endpoint-compliance-cycle.ps1 -IncludePendingEvidence | |
| - name: Endpoint compliance drift gate (enforced) | |
| shell: pwsh | |
| run: ./scripts/compliance/enforce-endpoint-compliance-drift.ps1 -LedgerPath "security-compliance/controls/endpoint-minimum-necessary-reviews.csv" -EvidenceGapCsvPath "security-compliance/controls/endpoint-evidence-completion-gaps.csv" -SlaSummaryPath "security-compliance/controls/endpoint-remediation-sla-summary.md" | |
| - name: Upload endpoint compliance artifacts | |
| if: always() | |
| uses: actions/upload-artifact@v5 | |
| with: | |
| name: endpoint-compliance-artifacts | |
| path: | | |
| security-compliance/controls/endpoint-compliance-executive-summary.md | |
| security-compliance/controls/endpoint-compliance-trend.md | |
| security-compliance/controls/endpoint-remediation-kpi.md | |
| security-compliance/controls/endpoint-ready-to-close-summary.md | |
| security-compliance/controls/endpoint-remediation-sla-summary.md | |
| security-compliance/controls/endpoint-evidence-completion-gaps-summary.md | |
| security-compliance/controls/endpoint-compliance-history.csv | |
| security-compliance/controls/tls-posture-verification.md | |
| frontend-build-and-audit: | |
| runs-on: ubuntu-latest | |
| defaults: | |
| run: | |
| working-directory: frontend | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Setup Node | |
| uses: actions/setup-node@v5 | |
| with: | |
| node-version: '20' | |
| cache: 'npm' | |
| cache-dependency-path: frontend/package-lock.json | |
| - name: Install dependencies | |
| run: npm ci | |
| - name: Build frontend | |
| run: npm run build | |
| - name: NPM audit (high and critical) | |
| run: npm audit --audit-level=high |