Commit Graph
4 Commits
Author SHA1 Message Date
Abolfazl Ranjbaran 25a467113b ci(deps): bump all actions to latest majors before the December deadline
Scorecard's next run surfaced two more specifics:

- upload-sarif rejected results_file (old input name); the modern
  input is sarif_file — the default fell back to ../results and the
  step failed with 'Path does not exist'. Scorecard analysis itself
  ran fine; only the SARIF upload was misconfigured
- GitHub deprecates CodeQL Action v3 in December 2026 — weeks away —
  and the runner logs flagged Node 20 on checkout/upload-artifact

Everything moves to the newest major with Node 24: codeql-action v4,
checkout v5, setup-python v6, upload-artifact v5, upload-pages-artifact
v4, login-action v4, metadata-action v6, build-push-action v7 (deploy-
pages v5 / configure-pages v6 / setup-buildx-action v4 stay: no newer
major exists). All SHAs resolved from the Git refs API with annotated
tags peeled to commits, verified via the commits endpoint.
2026-11-26 06:32:55 +00:00
Abolfazl Ranjbaran 5949e86385 ci(fix): real commit SHA for codeql-action pin, deploy retry for Pages race
Two CI failures taught two lessons:

1. Scorecard's webapp verifies every pinned action belongs to its repo
   and rejected 'imposter commit 945b7d9...' — the ref API had returned
   the annotated tag OBJECT id for codeql-action@v3, not the commit.
   The other twelve tags were lightweight, so only codeql-action was
   affected; init/analyze/upload-sarif now pin 74c1aea (a verified
   commit from 2026-11-24).

2. Pages still raced even with the artifact-visibility wait: the Pages
   metadata service converges a few seconds after the Actions artifacts
   API, and delete+upload in one run poisons the first deploy attempt.
   Deploy now runs as two attempts with a 20 s settle gap; the
   environment URL falls back to the retry step's output.

Both fixes verified against the GitHub API, not guessed.
2026-11-26 06:26:18 +00:00
Abolfazl Ranjbaran e610d067ba ci(hardening): timeouts, concurrency, semantic PR titles, SHA-pinned actions
Professionalization round 3, phase A+B:

- Every job gets an explicit timeout-minutes (pr: 5, compose: 10,
  sync/pages/web: 10-15, ci/codeql: 30, docker: 40, benchmark: 60) —
  hung jobs no longer burn the runner hour silently
- CI gets a concurrency group with cancel-in-progress (stale pushes
  stop superseding runs early)
- GHCR builds now attach SBOM + max-mode provenance attestations
  (verifiable via docker buildx imagetools inspect) — supply-chain
  metadata ships with every image
- New PR title check: Conventional Commits enforced on pull_request
  titles, matching the discipline CONTRIBUTING.md already declares
- All third-party actions pinned to full commit SHAs (with trailing
  '# vX' comments so Dependabot keeps updating them): removes the
  tag-retargeting attack surface and satisfies the OpenSSF Scorecard
  pinned-dependencies check

Validated: all seven workflow YAMLs parse.
2026-11-26 06:14:33 +00:00
Abolfazl Ranjbaran 3d74253a58 docs(professional-audit): community health, CodeQL, docs truthfulness
Second audit round, findings fixed:
- ROADMAP was two versions stale: v1.3 still labelled 'current work',
  the plans feature absent. All shipped sections now carry their
  version, open work lives under 'next — current work' with real
  issue numbers (#29/#30/#31) and the two pending experiments
- architecture.md Quota section documented only the v1.3 monthly
  allowance; now covers the full plans system: free/pro table, both
  402 codes, expiry downgrade, stacked renewals, admin endpoint and
  the deliberate no-payment-gateway design (all claims verified
  against limits.py/deps.py/routes_admin.py/handlers.py)
- CODE_OF_CONDUCT.md (Contributor Covenant 2.1) + CODEOWNERS —
  community profile previously missing both
- CodeQL workflow: weekly + per-push SAST over Python
  (security-extended) and web, results in the Security tab
- .env.example: WEBHOOK_TIMEOUT_SECONDS / WEBHOOK_ATTEMPTS existed in
  Settings but were undocumented
- landing page: transparent-quota feature card (headline feature of
  v1.4.0 was absent from the product face)
- CHANGELOG Unreleased section documents all of the above

Validated: YAML parses, HTML tag balance, linkcheck 25/25,
CI green on the previous commit.
2026-11-25 14:54:27 +00:00