Skip to content

docs(ops): document CodeQL dual-source conflict and Zizmor every-PR enforce - #1764

Merged
FabioLeitao merged 1 commit into
mainfrom
cursor/technical-documentation-maintenance-e997
Aug 27, 2026
Merged

FabioLeitao merged 1 commit into
mainfrom
cursor/technical-documentation-maintenance-e997

Conversation

@cursor

@cursor cursor Bot commented Aug 25, 2026 •

Copy link
Copy Markdown
Contributor

Description

Weekly docs pass: align contributor and operator docs with live GitHub Actions, verified against .github/workflows/codeql.yml, .github/workflows/zizmor.yml, and gh workflow list --all (2026-08-25).

  • CodeQL dual source: advanced workflow in git vs GitHub default setup (dynamic/github-code-scanning/codeql). GitHub rejects advanced SARIF while default setup is enabled (seen on main 2026-08-12). Comment in codeql.yml no longer claims default setup is already off.
  • Zizmor: runs on every push/PR (no paths: filter); the job fails unless ZIZMOR_ENFORCE=false; not a required merge check; PR checkout is head.sha. Local check-all still fails on zizmor findings; standalone workflow-security-lint stays advisory unless --enforce.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Refactor / maintenance
  • Other (describe):

Issue linking (required)

No issue closed: dual-source CodeQL still live; docs only.
  • This PR links the issue with Closes #NNNN or documents No issue closed: above

Docs added/updated

  • .github/workflows/codeql.yml (comment only)
  • docs/TESTING.md + docs/TESTING.pt_BR.md
  • docs/QUALITY_WORKFLOW_RECOMMENDATIONS.md + .pt_BR.md
  • CONTRIBUTING.md + CONTRIBUTING.pt_BR.md
  • docs/GLOSSARY.md + docs/GLOSSARY.pt_BR.md
  • docs/ops/BRANCH_PROTECTION.md + .pt_BR.md

Codepaths covered

  • .github/workflows/codeql.yml (Python security-and-quality, push/PR/weekly)
  • GitHub default setup path dynamic/github-code-scanning/codeql (not in git)
  • .github/workflows/zizmor.yml (ENFORCE_ZIZMOR, head.sha checkout, no second upload-sarif)
  • scripts/check-all-security-scans.sh vs scripts/workflow-security-lint.sh

Knowledge gaps addressed

  • Docs claimed CodeQL default setup was already disabled / sole source; live state still shows two active CodeQL workflows.
  • QUALITY/CONTRIBUTING treated Zizmor as advisory-by-default or path-filtered; the workflow fails unless ZIZMOR_ENFORCE=false and has no paths: filter.

🧱 Checklist de Integridade

  • Python: targeted docs gates (test_markdown_lint, test_docs_pt_br_locale, test_github_workflows, test_docs_external_no_plan_links) and ./scripts/lint-only.sh.
  • Rust Core: cargo clippy --locked — skipped here; cloud rustc 1.83 cannot build current boar_fast_filter (unsigned_is_multiple_of). Docs-only slice.
  • Performance: not applicable (documentation).
  • Drift Doc: EN first, then pt-BR pairs for the files above. README product copy unchanged.
  • Léxico: pt-BR locale pytest passed.
Open in Web View Automation 

Note

Low Risk
Markdown and workflow comment changes only; no application or CI behavior changes in this diff.

Overview
Documentation-only pass aligning contributor and operator runbooks with live GitHub Actions (verified against codeql.yml, zizmor.yml, and gh workflow list --all).

The codeql.yml header comment no longer states that GitHub default setup is off; it now documents the dual CodeQL source conflict (in-repo advanced workflow vs dynamic/github-code-scanning/codeql), the SARIF rejection error when both are active, and how to detect two active CodeQL workflows.

EN + pt-BR updates across CONTRIBUTING, TESTING, GLOSSARY, QUALITY_WORKFLOW_RECOMMENDATIONS, and BRANCH_PROTECTION correct prior drift: Zizmor runs on every push/PR (no paths: filter), fails by default unless repo variable ZIZMOR_ENFORCE=false, is not a required merge check, and uses head.sha on PRs; check-all’s default security tier fails on zizmor while standalone workflow-security-lint stays advisory unless --enforce. CodeQL sections explain the advanced workflow, default-setup pitfall, and that CodeQL is advisory for merge.

Reviewed by Cursor Bugbot for commit 5d1d22a. Bugbot is set up for automated code reviews on this repo. Configure here.

@FabioLeitao
FabioLeitao marked this pull request as ready for review August 27, 2026 00:21
@strix-security

Copy link
Copy Markdown

This workspace has reached the limit of 50 included PR reviews during your trial. Upgrade to continue receiving PR security reviews.

So far, Strix has reviewed 36 pull requests, surfaced 5 security issues (1 critical/high) and blocked 1 risky merge across this workspace.

@cursor

cursor Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_4c672c2b-6a0d-409c-9182-1b6990de3435)

@greptile-apps

greptile-apps Bot commented Aug 27, 2026 •

Copy link
Copy Markdown

Greptile Summary

This documentation-only PR updates English and Brazilian Portuguese operational guidance for CodeQL and Zizmor.

  • Documents the conflict between CodeQL advanced configuration and GitHub default setup.
  • Describes Zizmor enforcement, checkout behavior, merge-check status, and local lint behavior.
  • Updates the CodeQL workflow header comment without changing workflow execution.

Confidence Score: 5/5

The PR appears safe to merge because no blocking failure remains.

No blocking failure remains.

Important Files Changed

Filename Overview
.github/workflows/codeql.yml Updates comments describing the CodeQL dual-source conflict; executable workflow configuration is unchanged.
docs/TESTING.md Expands operator guidance for CodeQL and Zizmor behavior.
docs/TESTING.pt_BR.md Synchronizes the Brazilian Portuguese testing guidance with the English documentation.
docs/ops/BRANCH_PROTECTION.md Updates the branch-protection snapshot with current CodeQL and Zizmor operational details.
docs/ops/BRANCH_PROTECTION.pt_BR.md Synchronizes the Brazilian Portuguese branch-protection guidance.

Reviews (2): Last reviewed commit: "docs(ops): document CodeQL dual-source c..." | Re-trigger Greptile

Comment thread docs/GLOSSARY.md Outdated
| **CodeQL** | GitHub's semantic code-analysis engine: queries code **as a database** to find security patterns. This repo's advanced workflow is `.github/workflows/codeql.yml` (push / PR / weekly). GitHub **default setup** (`dynamic/github-code-scanning/codeql`) **cannot** run at the same time — GitHub rejects advanced SARIF while default setup is enabled. **See also:** **SAST**, **Semgrep**; [TESTING.md](TESTING.md). |
| **Semgrep** | Fast, pattern-based **SAST** across many languages. Data Boar runs the OSS `p/python` ruleset in CI. **See also:** **SAST**, **CodeQL**. |
| **zizmor** | Security linter for **GitHub Actions** workflows (token scope, script injection, unpinned actions). An **enforced** CI gate (issue #732), with an optional local pre-commit stage via `scripts/workflow-security-lint`. **See also:** **SAST**, **CI/CD**, **least privilege**. |
| **zizmor** | Security linter for **GitHub Actions** workflows (token scope, script injection, unpinned actions). The CI **job fails by default** (issue #732; opt out: repo variable **`ZIZMOR_ENFORCE=false`**). It is **not** a required merge check. Runs on every push/PR (**no** path filter). Optional local pre-commit stage via `scripts/workflow-security-lint`. **See also:** **SAST**, **CI/CD**, **least privilege**. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Overstated Zizmor push coverage

The changed documentation says Zizmor runs on every push/PR, but the workflow limits push events to main and master. Contributors pushing feature branches without opening or updating a PR will not receive the documented Zizmor run.

Context Used: All documentation must exist in Brazilian Portugue... (source)

Fix in Cursor Fix in Claude Code Fix in Codex

…nforce

Align operator and contributor docs with live workflows: GitHub default
setup still conflicts with .github/workflows/codeql.yml SARIF upload, and
zizmor.yml runs on every push/PR with job failure unless ZIZMOR_ENFORCE=false.
Issue #1757 stays open until default setup is actually disabled.
@FabioLeitao
FabioLeitao force-pushed the cursor/technical-documentation-maintenance-e997 branch from 3af70f9 to 5d1d22a Compare August 27, 2026 00:41
@cursor

cursor Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor Author

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_b4de18cf-4880-4726-879f-a0d4eea4ad95)

@FabioLeitao
FabioLeitao merged commit 3b95ec3 into main Aug 27, 2026
27 checks passed
@FabioLeitao
FabioLeitao deleted the cursor/technical-documentation-maintenance-e997 branch August 27, 2026 01:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant