Skip to content

ci: streamline security scans and automate Dependabot updates - #6

Merged
acgetchell merged 2 commits into
mainfrom
ci/security-maintenance
Oct 25, 2026
Merged

acgetchell merged 2 commits into
mainfrom
ci/security-maintenance

Conversation

@acgetchell

@acgetchell acgetchell commented Oct 25, 2026 •

Copy link
Copy Markdown
Owner

Dependabot's uv updater rejects the inherited Python 3.15 baseline, and the security jobs install more tooling than their scans need. Pause uv version-update jobs, keep shared manual maintenance and OSV coverage, and give scanner jobs a lightweight setup profile using the pinned research-repo-tools package.

  • Require the existing CodeQL Actions/Python analyses and block CodeQL error-level alerts and high/critical security alerts. The hosted ruleset is applied and verified, preserving the existing review and branch protections.
  • Install security tools through the shared verified binary installer and a root security dependency group, with separate caches from full Rust tooling. Python, tool pins, and resolved package versions remain inherited and unchanged.
  • Reuse the Dependabot approval workflow at the exact research-repo-tools v0.2.3 commit. It verifies identity, signed commits, allowed paths, and the current head before approving and enabling native squash auto-merge. Hosted permissions and the strict Actions allowlist are applied and verified; default tokens stay read-only.

The Dependabot caller activates after this PR reaches main. Required checks and human CODEOWNER review still apply to .github/**; ordinary paper review and auto-merge remain eligible under the existing policy. Dependabot PR #5 is already queued for native auto-merge and awaits owner review. Actions lockfiles remain deferred.

Validation: just paper-setup, just check, and just ci pass, including all 36 tests. All nine standalone LaTeX sources compile, the pilot reviewer-artifact comparison passes, and generated paper output is removed. GitHub tooling, security, and changed-paper checks also pass on commit 565e4ba. A fresh isolated security environment runs OSV, Gitleaks, and zizmor through Just without installing managed Rust/Cargo or paper PDF dependencies. Profile validation, exact dependency-file policy, unchanged lockfile versions/sources, and hosted settings were also checked.

@coderabbitai

coderabbitai Bot commented Oct 25, 2026 •

Copy link
Copy Markdown

Review in Change Stack →

⚠️ Automatic approval withheld

Automatic approval is disabled by the configured approval policy for this pull request. Review comments and requests for changes continue normally.

Next step: Have a maintainer review and approve directly in your Git provider. The approve and resolve commands do not bypass this policy.

Assessed commit: 565e4ba40f58.

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 9ac0ee8 and 565e4ba.

Files ignored due to path filters: 1
  • uv.lock is excluded by !**/*.lock, !uv.lock
Files selected for processing: 1
  • pyproject.toml

Included review availability: This review used your included allowance. 0 included reviews remain after this review. Your included PR review attempts over the past 7 days set your current allowance at 1 review per hour.

ℹ️ Recent review info
Automatic approval policy

Assessed commit: 565e4ba40f58.

Setting Effective value Source
Automatic approvals Disabled Override 1
Merge risk Low Global configuration
Security risk Not set Global configuration

Matching overrides (numbered as in the resolved configuration):

  • Override 1 — any author; paths: .github/**; automatic approvals: disabled.

Any matching disabled override withholds approval, regardless of risk. Otherwise, the strictest explicitly set limit wins for each score. Limits omitted by all matching overrides inherit the global configuration.

Not set means no limit was configured after inheritance. Use @coderabbitai configuration to inspect the resolved settings and their sources.

📝 Summary

Summary by CodeRabbit

  • New Features
    • Added automated approval and merging for eligible Dependabot updates, subject to verification and file restrictions.
    • Added CodeQL analysis checks and security alert thresholds to repository protections.
  • Security
    • Security scans now use a lighter setup while retaining locked dependencies and verified tools.
    • Workflow permissions default to read-only, with elevated permissions limited to specific jobs.
  • Documentation
    • Updated contributor and security guidance with the new checks and dependency update process.
  • Chores
    • Paused hosted uv dependency update pull requests; dependency monitoring and security scans continue.

The pull request adds a security dependency profile for scanner workflows, updates repository checks and workflow permissions, and adds Dependabot approval and auto-merge automation. It removes hosted uv update configuration and documents the related security and dependency update policies.

Changes: Security CI and Dependency Governance

Layer / File(s) Summary
Security profile and scanner setup
.github/actions/setup-just/action.yml, pyproject.toml, .github/workflows/gitleaks.yml, .github/workflows/osv.yml, .github/workflows/zizmor.yml, CONTRIBUTING.md, docs/SECURING.md
The setup action accepts full and security profiles and separates their managed-tools caches. Scanner workflows use security and run their just commands through locked uv run --no-sync. The security dependency group includes tooling and pins zizmor. The guidance describes the profiles and scanner setup.
Repository security controls
.github/settings/actions-selected.json, .github/settings/main-ruleset.json, .github/settings/workflow-permissions.json, CONTRIBUTING.md, docs/SECURING.md
Repository settings allow the shared Dependabot workflow and metadata action, require Actions and Python analysis checks, configure CodeQL alert thresholds, and set default workflow permissions to read while allowing review approval. The documentation describes these controls and checks.
Dependabot approval and update policy
.github/workflows/dependabot-auto-merge.yml, .github/dependabot.yml, CONTRIBUTING.md, docs/SECURING.md
A workflow delegates Dependabot pull-request approval and auto-merge to a commit-pinned reusable workflow. The hosted uv update configuration is removed. The documentation describes the workflow checks, merge gates, and dependency maintenance procedures.

Priority: Normal

Estimated code review effort: 3 (Moderate) | ~25 minutes

Change: Feature

Sequence Diagram(s)

sequenceDiagram
  participant DependabotPR
  participant CallerWorkflow as dependabot-auto-merge.yml
  participant ReusableWorkflow as Pinned reusable workflow
  participant GitHubPR as GitHub pull request
  DependabotPR->>CallerWorkflow: Open, reopen, ready, or synchronize event
  CallerWorkflow->>ReusableWorkflow: Invoke with repository and file policy
  ReusableWorkflow->>GitHubPR: Verify identity, signature, changed files, and head
  ReusableWorkflow->>GitHubPR: Approve and request native squash auto-merge
Loading

Possibly related issues

  • Issue 125 in acgetchell/research-repo-tools: The change uses a commit-pinned shared Dependabot workflow and adds an Actions allowlist pattern for it.
  • Issue 139 in acgetchell/research-repo-tools: The change adds a lightweight security setup profile, a security dependency group, and Just-based scanner workflow commands.

Possibly related PRs

  • acgetchell/Papers#3: Introduced the setup action, security workflows, dependency groups, security settings, and auto-merge configuration that this pull request modifies.
Merge Risk: Minimal · up to 565e4

No merge-blocking issue was identified in the reviewed changes.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title names the two main parts of the changeset: streamlined security scans (the new lightweight security profile in setup-just, the security dependency group, and the scanner workflows switched t…
Docstring Coverage Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Description check Passed The pull request description directly explains the security-profile changes, paused uv updates, Dependabot automation, hosted ruleset settings, and validation results described in the changeset.
Full details: Title check

Explanation

The title names the two main parts of the changeset: streamlined security scans (the new lightweight security profile in setup-just, the security dependency group, and the scanner workflows switched to it) and automated Dependabot updates (the reusable approval-and-auto-merge workflow). It is specific and matches the changes in the summary. It is slightly broad, since it omits the pause of uv version updates, but it is still a real and central part of the change. The title is about 61 characters and follows the conventional commit prefix style.

Full details: Docstring Coverage

Explanation

No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0 files. (1 skipped: 1 unsupported.)

Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

@acgetchell
acgetchell marked this pull request as ready for review October 25, 2026 06:54
@acgetchell
acgetchell merged commit 14c48a4 into main Oct 25, 2026
12 checks passed
@acgetchell
acgetchell deleted the ci/security-maintenance branch October 25, 2026 06:54
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