Skip to content

Sync Dependabot action pin comments via reusable workflow - #141

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

Sync Dependabot action pin comments via reusable workflow#141
jeremy merged 5 commits into
mainfrom
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 + #10, pinned at 9ca40e3b). 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 using the write deploy key scoped to this repo's dependabot-sync environment (deployment branches: main only). Validated end-to-end today on a live Dependabot PR in basecamp-cli (basecamp/basecamp-cli#566).

Also in this PR:

  • workflow_dispatch added to test.yml and security.yml (the other repos already had it).
  • test.yml renamed CITest — ci.yml and test.yml both being named CI made the workflow_run anchor fire twice per head and the detection name ambiguous. Required status checks are job-name contexts (test, lint, security, race-check), so the main-gate ruleset is unaffected. Consolidating the ci.yml/test.yml overlap is left as follow-up.
  • Require Go 1.26.5 — the required security check (govulncheck) was failing on stdlib vulnerabilities in go1.26.1; fixes span 1.26.3–1.26.5 (GO-2026-5856 et al.), so this jumps to the newest patch release. Workflows resolve the toolchain from go.mod.

Sibling callers (all merged): basecamp-sdk#459, basecamp-cli#572/#573, fizzy-cli#189/#190, cli#51/#52.

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.
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/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.

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 GitHub Actions workflow wrapper in this repo to run the basecamp/.github reusable workflow that syncs stale Dependabot # vX.Y.Z action-pin comments after CI completes, plus enables manual dispatch on existing CI/Security workflows to support the reusable workflow’s re-CI fallback.

Changes:

  • Add .github/workflows/dependabot-sync-actions-comments.yml as a workflow_run + workflow_dispatch caller for the reusable workflow at a fixed SHA.
  • Allow manual runs of CI and Security workflows via workflow_dispatch.

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 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
.github/workflows/test.yml Adds workflow_dispatch so CI can be manually re-run (e.g., by the sync workflow’s dispatch fallback).
.github/workflows/security.yml Adds workflow_dispatch so security checks can be manually re-run (e.g., by the sync workflow’s dispatch fallback).
.github/workflows/dependabot-sync-actions-comments.yml New workflow that triggers on CI completion for Dependabot github_actions branches and delegates to the SHA-pinned reusable workflow.

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

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

@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: 1a1904ce44

ℹ️ 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/dependabot-sync-actions-comments.yml Outdated

@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 3 files

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

Re-trigger cubic

Comment thread .github/workflows/dependabot-sync-actions-comments.yml Outdated
Comment thread .github/workflows/dependabot-sync-actions-comments.yml Outdated
…e name

Review feedback (Copilot + Codex): a trigger-level branches filter stops
workflow runs from being created for non-Dependabot branches (the
job-level if only skips the job after the fact), and ci.yml and test.yml
both being named CI made the workflow_run anchor fire twice per head and
the ci-workflow-name detection ambiguous. test.yml becomes Test
(matching basecamp-cli and cli); required status checks are job-name
contexts (test, lint, security, race-check) so the rename does not
affect the main-gate ruleset. Consolidating ci.yml vs test.yml overlap
is left as a follow-up.
Copilot AI review requested due to automatic review settings July 27, 2026 20:19
@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

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

Comment thread .github/workflows/dependabot-sync-actions-comments.yml
Clears the nine stdlib vulnerabilities govulncheck flags in go1.26.1
(GO-2026-4866 et al., all fixed in 1.26.2). The workflows resolve the
toolchain from go.mod, so this moves CI and local builds together.
basecamp/.github#10 removed the CI-dispatch fallback (Codex P1 on
fizzy-cli#189: dispatching branch workflows executes unreviewed action
pins outside the Dependabot sandbox); the workflow now verifies CI
started on the pushed head and warns a maintainer if not.

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
Copilot AI review requested due to automatic review settings July 27, 2026 20:32

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 no new comments.

Comments suppressed due to low confidence (1)

.github/workflows/dependabot-sync-actions-comments.yml:40

  • inputs.* context is only available for workflow_dispatch / workflow_call events. This workflow also runs on workflow_run, where referencing inputs.branch / inputs.e2e can cause expression-evaluation errors before the reusable workflow is invoked. Prefer deriving values from github.event so both triggers work, and pass the workflow_run head branch explicitly.
      branch: ${{ inputs.branch || '' }}
      e2e: ${{ inputs.e2e || false }}

1.26.2 was not enough: govulncheck flags stdlib vulnerabilities fixed
across 1.26.3–1.26.5 (GO-2026-5856 in crypto/tls et al.). 1.26.5 is the
newest patch release, clearing all five remaining findings.
Copilot AI review requested due to automatic review settings July 27, 2026 20:37

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 2 comments.

Comment thread .github/workflows/dependabot-sync-actions-comments.yml
Comment thread go.mod
@jeremy
jeremy merged commit 2db832e into main Jul 27, 2026
29 checks passed
@jeremy
jeremy deleted the ci/dependabot-sync-actions-comments branch July 27, 2026 20:44
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