Repository navigation
Workflow scans use explicit concurrency and token scopes - #1842
Merged
Merged
Conversation
Group pull request checks by workflow and ref, and keep distinct commit runs independent. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Share the scanner steps in one workflow and grant SARIF upload access to the default-branch job. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…ncy-alerts Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…ncy-alerts Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Label the jobs in audit reports and group Rust advisory runs by pull request or commit. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…ncy-alerts Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
GitHub returns the static dependency diff alongside a missing-head warning. Verify that Maven and Rust snapshot inputs are unchanged before acting on that diff. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
…ation Live link checks cover the published documentation on pushes and scheduled runs. Pull requests check the candidate link inventory and the trusted install redirects. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
The Rust dependency workflow runs the snapshot tests before resolving Cargo dependencies. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
Include the checkout root when checking input paths for the Rust workflow’s Python commands. Signed-off-by: Lareb Zafar <lareb.zafar@clickhouse.com>
This was referenced Dec 1, 2026
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes: #1841
Closes: #1844
Changelog category
Why
Six workflows can run several copies for the same pull request. A newer run supersedes earlier work on that pull request. The extended CodeQL scan and publish jobs share their analysis steps and declare repository access directly on the jobs that use it. The TypeScript API report and Rust advisory check have explicit job display names.
Dependency review verifies the Maven and Rust inputs when GitHub reports a missing head snapshot. Workflow pull requests check the link inventory and trusted install redirects. Push and scheduled runs crawl the public documentation URLs.
Scope and risk
The SDK API checks, dependency graph workflows, Rust advisory check and external documentation link check use the main CI concurrency pattern. Pull requests group by workflow and PR ref. Push and scheduled runs group by workflow and commit, with running jobs allowed to finish. The extended CodeQL PR job has read access and reports findings in its run summary. The default-branch job can also upload SARIF, which requires
security-events: write.Compatibility, rollout and rollback
Tests
The pinned zizmor auditor clears twelve findings across concurrency, permissions, same-repository workflow calls and job naming and reports zero new findings.
Workflow syntax and shell checks pass with jactionlint and ShellCheck. A parsed YAML comparison confirms the event guards, permission scopes, language matrix and analysis settings.
Local format, lint and type checks pass.
The workflow audit tests and Rust dependency snapshot tests pass.
Dependency review regression tests pass, and replaying GitHub’s responses for both pull requests reports unchanged snapshot inputs and zero blocking advisories.
AI assistance in the code
AI-generated (Codex). The before and after audit, parsed YAML comparison and workflow lint checked the workflow changes.
I can explain every line of this diff and how it interacts with the rest of Loom.
Checklist
git commit -s).Note
Medium Risk
Changes CI orchestration and dependency-review fail-open behavior when snapshots are missing; incorrect Compare/path logic could block or greenlight PRs inappropriately, but production runtime code is unaffected.
Overview
Adds concurrency to several CI workflows (Go/Rust/TS API checks, dependency graphs, Rust advisories, external links, Maven graph) so PR runs cancel in-progress duplicates and push/scheduled runs group by commit SHA.
CodeQL extended stops using a separate reusable workflow: scan/publish jobs now share inlined steps via YAML anchors, with explicit
contents: readon PR scans andsecurity-events: writeonly on default-branch SARIF upload.Dependency review no longer hard-fails when GitHub reports a missing head dependency snapshot. It still blocks incomplete snapshots, but for the specific “no snapshot for head SHA” case it uses the Compare API to ensure Maven/Rust snapshot inputs are unchanged (with an exception for concurrency-only edits to submission workflows).
External documentation links on pull requests limit checks to link inventory and VS Code redirect validation against the base branch; full public URL crawling and step-summary reporting run only on push/schedule.
Unit tests cover the new missing-snapshot verification paths.
Reviewed by Cursor Bugbot for commit f68f489. Bugbot is set up for automated code reviews on this repo. Configure here.