Fix CheckYourself DevArch findings#51
Conversation
📝 WalkthroughWalkthroughThis PR hardens supply chain security by pinning GitHub Actions and reusable workflows to specific commit SHAs across five workflows, adds Dependabot configuration for automated weekly dependency updates with ecosystem-specific labels and commit prefixes, and prevents accidental commits of TLS key material via ChangesSupply Chain Security Hardening
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes 🚥 Pre-merge checks | ✅ 3 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (3 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
There was a problem hiding this comment.
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
.github/workflows/ci.yml (2)
11-16:⚠️ Potential issue | 🟠 Major | ⚡ Quick winUse Blacksmith runners for every CI job.
Line 11 and Line 43 still target
matrix.os/ubuntu-latest, which violates the CI runner requirement. Switch all CI jobs toblacksmith-2vcpu-ubuntu-2404.As per coding guidelines, "All CI runs on blacksmith-2vcpu-ubuntu-2404 runners".
Also applies to: 43-43
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the rest with a brief reason, keep changes minimal, and validate. In @.github/workflows/ci.yml around lines 11 - 16, Update the GitHub Actions workflow to use the mandated Blacksmith runner: replace any occurrences of "runs-on: ${{ matrix.os }}" and hardcoded "ubuntu-latest" in the CI matrix with "runs-on: blacksmith-2vcpu-ubuntu-2404" (and remove or adjust the matrix.os entries so jobs do not select ubuntu-latest); ensure every job that currently references matrix.os or ubuntu-latest (including the other job noted around the second occurrence) uses blacksmith-2vcpu-ubuntu-2404 instead.
9-65:⚠️ Potential issue | 🟠 Major | 🏗️ Heavy liftCI policy checks are incomplete (build, concurrency, caching, Python/Node coverage).
This workflow currently defines test/lint only, has no
concurrency, no explicit caching configuration, and no Node-version checks despite the stated Python/Node requirement. Please add a build job and enforce concurrency + cache + supported Python/Node matrices in this file.As per coding guidelines, "CI workflow must run lint, test, and build checks on Blacksmith runners with concurrency and caching" and "CI must pass on all supported Python/Node versions".
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Outside diff comments:
In @.github/workflows/ci.yml:
- Around line 11-16: Update the GitHub Actions workflow to use the mandated
Blacksmith runner: replace any occurrences of "runs-on: ${{ matrix.os }}" and
hardcoded "ubuntu-latest" in the CI matrix with "runs-on:
blacksmith-2vcpu-ubuntu-2404" (and remove or adjust the matrix.os entries so
jobs do not select ubuntu-latest); ensure every job that currently references
matrix.os or ubuntu-latest (including the other job noted around the second
occurrence) uses blacksmith-2vcpu-ubuntu-2404 instead.
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro Plus
Run ID: eda3b9f6-4469-4874-a96e-ec7aaa95968c
📒 Files selected for processing (7)
.github/dependabot.yml.github/workflows/agent-law.yml.github/workflows/archaeology.yml.github/workflows/blacksmith-probe.yml.github/workflows/ci.yml.github/workflows/publish.yml.gitignore
Summary\n- pin GitHub Actions and reusable workflow references to full commit SHAs\n- add Dependabot coverage for Python dependencies and Actions\n- ignore private key files\n\n## Verification\n- python3 -m pytest -q (93 passed)\n- workflow YAML parse check\n- CheckYourself deep scan: 0 open findings\n- git diff --check
Need help on this PR? Tag
@codesmithwith what you need. Autofix is disabled.Summary by CodeRabbit