- Rewrite ci.yml: replace TMT with direct go test/lint/build commands, remove E2E jobs (need docker compose infra, run locally instead) - Replace third-party actions with CLI equivalents: gitleaks-action → gitleaks CLI, trivy-action → trivy CLI, actions-rust-lang/audit → cargo audit, CodeQL → disabled - Disable 18 non-essential workflows (cloud services, DinD, staging): chromatic, cd, container-scan, zap-dast, visual-regression, mutation-testing, performance, load-test, etc. - Keep 8 core workflows: ci, backend-ci, frontend-ci, rust-ci, stream-ci, security-scan, trivy-fs, go-fuzz Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
34 lines
988 B
Text
34 lines
988 B
Text
name: OWASP ZAP DAST
|
|
|
|
on:
|
|
schedule:
|
|
- cron: "0 3 * * *" # Nightly at 3am UTC
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
GIT_SSL_NO_VERIFY: "true"
|
|
NODE_TLS_REJECT_UNAUTHORIZED: "0"
|
|
|
|
jobs:
|
|
zap-baseline:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 30
|
|
|
|
steps:
|
|
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
|
|
- name: ZAP Baseline Scan
|
|
uses: zaproxy/action-baseline@v0.12.0
|
|
with:
|
|
target: ${{ secrets.STAGING_URL || 'http://localhost:5174' }}
|
|
rules_file_name: .zap/rules.tsv
|
|
fail_action: false
|
|
artifact_name: zap-report
|
|
|
|
- name: Upload ZAP report
|
|
if: always()
|
|
uses: actions/upload-artifact@65c4c4a1ddee5b72f698fdd19549f0f0fb45cf08 # v4.6.0
|
|
with:
|
|
name: zap-report
|
|
path: report_html.html
|
|
retention-days: 30
|