Skip to content

Sync Dependabot action pin comments via reusable workflow - #189

Merged
jeremy merged 3 commits into
masterfrom
ci/dependabot-sync-actions-comments
Jul 27, 2026
Merged

Sync Dependabot action pin comments via reusable workflow#189
jeremy merged 3 commits into
masterfrom
ci/dependabot-sync-actions-comments

Conversation

@jeremy

@jeremy jeremy commented Jul 27, 2026

Copy link
Copy Markdown
Member

Thin caller for the dependabot-sync-actions-comments reusable workflow (basecamp/.github#8, merged as 95a9f7a2). After CI completes on a Dependabot github_actions branch, trusted default-branch code fixes any stale # vX.Y.Z pin comments — including compound ones with trailing # zizmor: ignore[...] annotations that Dependabot can't rewrite — and pushes back behind a compare-and-swap lease.

Security model (openclaw-basecamp lineage, hardened after basecamp-sdk#458 review): the Dependabot head branch is fetched as data and never executed; the push uses a write deploy key scoped to this repo's dependabot-sync environment, whose deployment branch policy allows only the default branch (App tokens can't push workflow-file changes at all). Environment + deploy key are already provisioned.

Also adds workflow_dispatch to test.yml and security.yml so the reusable workflow's CI-dispatch fallback can re-run checks on the pushed head (the other repos already had it).

Second commit is a one-time catch-up running the updater against current workflows: 1 stale comment in release.yml (setup-go v6.4.0→v7.0.0).

Runtime validation: after merge, a workflow_dispatch run against a live Dependabot actions branch (basecamp-cli#566 is the standing candidate) proves the full fix→guard→push→re-CI loop.


Summary by cubic

Automates syncing of GitHub Actions pin version comments on Dependabot github_actions branches using the SHA-pinned reusable workflow from basecamp/.github. Adds a trigger-level branch filter for safety, and updates one stale comment in release.yml for actions/setup-go to v7.0.0.

  • New Features
    • Added .github/workflows/dependabot-sync-actions-comments.yml to rewrite stale # vX.Y.Z pin comments (including with # zizmor: ignore[...]), fetch the Dependabot head as data, and push via the dependabot-sync deploy key; includes a trigger-level workflow_run filter for dependabot/github_actions/** with a job-level guard for defense-in-depth.
    • Enabled workflow_dispatch on CI and Security workflows so checks can re-run on the pushed head.

Written for commit 447780f. Summary will update on new commits.

Review in cubic

jeremy added 2 commits July 27, 2026 13:07
Thin caller for basecamp/.github's dependabot-sync-actions-comments
reusable workflow (basecamp/.github#8): after CI completes on a
Dependabot github_actions branch, trusted default-branch code fixes any
stale pin version comments and pushes back behind a compare-and-swap
lease, using the write deploy key scoped to this repo's dependabot-sync
environment (deployment branches: default branch only).

Also adds workflow_dispatch to test.yml and security.yml so the reusable
workflow's CI-dispatch fallback can re-run checks on the pushed head.
One-time catch-up applying what the new sync workflow will maintain
automatically: version comments on SHA-pinned uses lines whose trailing
zizmor annotations prevented Dependabot from rewriting them.
Copilot AI review requested due to automatic review settings July 27, 2026 20:07
@github-actions

Copy link
Copy Markdown

Sensitive Change Detection (shadow mode)

This PR modifies control-plane files:

  • .github/workflows/dependabot-sync-actions-comments.yml
  • .github/workflows/release.yml
  • .github/workflows/security.yml
  • .github/workflows/test.yml

Shadow mode — this check is informational only. When activated, changes to these paths will require approval from a maintainer.

@github-actions github-actions Bot added the enhancement New feature or request label Jul 27, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds a thin, SHA-pinned caller workflow to keep Dependabot github_actions branches’ action pin comments (# vX.Y.Z, including # zizmor: ignore[...] suffixes) in sync using trusted default-branch reusable workflow code from basecamp/.github, and enables manual dispatch on existing CI/security workflows to support the re-CI loop after a push-back.

Changes:

  • Add dependabot-sync-actions-comments.yml workflow that triggers on workflow_run (CI completion) and workflow_dispatch, calling the SHA-pinned reusable workflow.
  • Enable workflow_dispatch on CI and Security workflows.
  • Update one stale pin comment in release.yml for actions/setup-go to # v7.0.0.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/test.yml Adds workflow_dispatch so CI can be re-run via dispatch.
.github/workflows/security.yml Adds workflow_dispatch so security checks can be re-run via dispatch.
.github/workflows/release.yml Updates the setup-go pin comment to the current version label.
.github/workflows/dependabot-sync-actions-comments.yml Adds a caller workflow that invokes the SHA-pinned reusable sync workflow on CI completion / manual dispatch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/dependabot-sync-actions-comments.yml

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

All reported issues were addressed across 4 files

Reply with feedback, questions, or to request a fix.

Re-trigger cubic

Comment thread .github/workflows/dependabot-sync-actions-comments.yml
Review feedback: the job-level if only skips the job after the run is
created; a trigger-level branches filter stops runs from being created
for non-Dependabot branches at all. The if stays as defense-in-depth.
Copilot AI review requested due to automatic review settings July 27, 2026 20:19

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

Comment thread .github/workflows/dependabot-sync-actions-comments.yml

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 447780fd3d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread .github/workflows/security.yml
@jeremy
jeremy merged commit d064f2c into master Jul 27, 2026
21 checks passed
@jeremy
jeremy deleted the ci/dependabot-sync-actions-comments branch July 27, 2026 20:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants