← Files ProdVerityARCHIVED FILE
source/.github/workflows/prodverity-external-audit.yml
2.72 KB · Nov 29, 2026 · 00:48 UTC
name: ProdVerity Independent External Audit
on:
pull_request:
branches: [main]
paths:
- 'worker/prodverity-public-mcp.ts'
- 'scripts/prodverity-public-edge-audit.mjs'
- 'scripts/prodverity-public-edge-audit-lib.mjs'
- 'scripts/prodverity-public-edge-audit.test.mjs'
- '.github/workflows/prodverity-external-audit.yml'
workflow_dispatch:
schedule:
- cron: '23 5 * * *'
workflow_run:
workflows: ["GSA Production Deploy"]
types: [completed]
permissions:
contents: read
concurrency:
group: prodverity-external-audit
cancel-in-progress: false
jobs:
public-edge:
if: ${{ github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout the auditor
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Restore the last successful comparative evidence
uses: actions/cache/restore@v4
with:
path: audit-history/latest-success.json
key: prodverity-external-audit-${{ github.repository_id }}-${{ github.ref_name }}-${{ github.run_id }}
restore-keys: |
prodverity-external-audit-${{ github.repository_id }}-${{ github.ref_name }}-
prodverity-external-audit-${{ github.repository_id }}-main-
- name: Run audit parser and regression tests
run: node --test scripts/prodverity-public-edge-audit.test.mjs
- name: Check independent public HTTP response
env:
EXPECTED_REVISION: ${{ github.event.workflow_run.head_sha }}
PREVIOUS_REPORT_PATH: audit-history/latest-success.json
run: node scripts/prodverity-public-edge-audit.mjs
- name: Stage successful evidence for the next comparison
if: success() && github.event_name != 'pull_request'
shell: bash
run: |
mkdir -p audit-history
cp audit-artifacts/prodverity-public-edge-report.json audit-history/latest-success.json
- name: Cache successful comparative evidence
if: success() && github.event_name != 'pull_request'
uses: actions/cache/save@v4
with:
path: audit-history/latest-success.json
key: prodverity-external-audit-${{ github.repository_id }}-${{ github.ref_name }}-${{ github.run_id }}
- name: Preserve the external evidence, including failed audits
if: always()
uses: actions/upload-artifact@v4
with:
name: prodverity-public-edge-${{ github.run_id }}
path: audit-artifacts/prodverity-public-edge-report.json
retention-days: 30
if-no-files-found: warn
SHA-256: febe1d5133d7cca97eb7ef272a15f72a3ad7bfeffa2f8b1c935e26c731cc75c6