Skip to content

fix(ci-analyst): pin reusable ref to post-merge main SHA - #370

Merged
don-petry merged 3 commits into
mainfrom
fix/ci-analyst-template-pin-post-merge-sha
May 23, 2026
Merged

fix(ci-analyst): pin reusable ref to post-merge main SHA#370
don-petry merged 3 commits into
mainfrom
fix/ci-analyst-template-pin-post-merge-sha

Conversation

@don-petry

Copy link
Copy Markdown
Collaborator

Summary

Addresses a P1 issue raised during review of #367: the SHA pinned in the
template and lock stub (69e9774) predated the PR and did not include
ci-failure-analyst-reusable.yml. Any repo copying the template would fail
to resolve the uses: target.

This PR updates all three affected files to reference the merge commit of
#367 (121bee881bd13715706d30230b2d5a8d2d78b0b1), which is the first commit
on main that contains the reusable workflow.

Files changed:

  • templates/ci-failure-analyst.yml — SHA updated
  • .github/workflows/ci-failure-analyst.lock.yml — SHA updated
  • docs/aw/ci-failure-analyst.md — architecture diagram SHA updated

Test plan

  • Verify the pinned SHA resolves correctly: gh api repos/petry-projects/.github-private/contents/.github/workflows/ci-failure-analyst-reusable.yml?ref=121bee881bd13715706d30230b2d5a8d2d78b0b1
  • CI passes on this PR

🤖 Generated with Claude Code

don-petry added 3 commits May 22, 2026 21:23
The SHA 69e9774 predated PR #367 and did not contain the reusable workflow.
Update the pinned ref to the merge commit (121bee8) which is the
first commit on main that includes ci-failure-analyst-reusable.yml.
The SHA 69e9774 predated PR #367 and did not contain the reusable workflow.
Update the pinned ref to the merge commit (121bee8) which is the
first commit on main that includes ci-failure-analyst-reusable.yml.
The SHA 69e9774 in the architecture diagram predated PR #367. Update to
the merge commit (121bee8) which is the first main SHA that
contains the reusable workflow.
Copilot AI review requested due to automatic review settings May 23, 2026 02:25
@coderabbitai

coderabbitai Bot commented May 23, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@don-petry, we couldn't start this review because you've used your available PR reviews for now.

Your plan currently allows 1 review/hour. Refill in 14 minutes and 19 seconds.

Your organization has run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After more review capacity refills, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than trial, open-source, and free plans. In all cases, review capacity refills continuously over time.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 2adcccb8-7497-4b86-bf36-11cbe62bfede

📥 Commits

Reviewing files that changed from the base of the PR and between 121bee8 and a3b7c6d.

📒 Files selected for processing (3)
  • .github/workflows/ci-failure-analyst.lock.yml
  • docs/aw/ci-failure-analyst.md
  • templates/ci-failure-analyst.yml
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/ci-analyst-template-pin-post-merge-sha

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@don-petry

Copy link
Copy Markdown
Collaborator Author

No description provided.

@sonarqubecloud

Copy link
Copy Markdown

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

Updates the pinned reusable-workflow reference for CI Failure Analyst so that the template stub, the repo’s lock stub, and the documentation all point at the first main commit that actually contains ci-failure-analyst-reusable.yml (avoiding broken uses: references when other repos copy the template).

Changes:

  • Update uses: petry-projects/.github-private/.github/workflows/ci-failure-analyst-reusable.yml@… from the pre-#367 SHA to 121bee881bd13715706d30230b2d5a8d2d78b0b1.
  • Keep the template stub and the in-repo lock stub aligned on the same pinned SHA.
  • Update the documentation architecture diagram to match the new pinned SHA.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
templates/ci-failure-analyst.yml Pins the reusable workflow reference to 121bee8… so new repos copying the template resolve the workflow correctly.
docs/aw/ci-failure-analyst.md Updates the architecture diagram to reflect the new pinned reusable SHA.
.github/workflows/ci-failure-analyst.lock.yml Pins the in-repo stub to the same 121bee8… reusable workflow SHA.

@don-petry

Copy link
Copy Markdown
Collaborator Author

No description provided.

@donpetry-bot donpetry-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.

Automated review — APPROVED ✓

Risk: LOW
Reviewed commit: a3b7c6d78275174d41925e3f72d9c00c06d72b1d
Review mode: triage-approved (single reviewer)

Summary

Minimal, low-risk follow-up to #367. The three changed files each swap one pinned SHA (69e9774121bee8) on the reusable-workflow uses: reference. Diff is +3/-3 across .github/workflows/ci-failure-analyst.lock.yml, templates/ci-failure-analyst.yml, and docs/aw/ci-failure-analyst.md. No logic, secrets, permissions, or workflow shape changes.

Linked issue analysis

No linked issue. The PR body explains the motivation: the previously-pinned SHA 69e9774 predates #367 and therefore does not contain ci-failure-analyst-reusable.yml, so any repo copying the template would fail to resolve the uses: target. The new SHA 121bee881bd13715706d30230b2d5a8d2d78b0b1 is the merge commit of #367 on main — verified via gh api repos/petry-projects/.github-private/contents/.github/workflows/ci-failure-analyst-reusable.yml?ref=121bee8… (200 OK, 6550 bytes). Substantive fix for a real P1.

Findings

  • Correctness: All three pinned references are updated to the same SHA — template stub, in-repo lock stub, and the architecture diagram stay aligned. No drift introduced.
  • Security: Pin remains a full 40-char commit SHA (immutable). No move toward a mutable branch ref. No new secrets, permissions, or action sources.
  • Maintainability: The # main trailing comment is preserved on all three lines, matching the convention established in #367 for tracking which branch the SHA was sourced from.
  • No new issues.

CI status

All required checks green: Lint, ShellCheck, bats, unit-tests, CodeQL, SonarCloud, AgentShield, Agent Security Scan, Secret scan (gitleaks), Compile agentic workflows, validate-agent-profiles, Validate AW specs. Conditional dependabot-automerge, pr-review-mention, ci-relay, and language-specific dependency-audit jobs correctly skipped. Copilot review left no comments; SonarCloud quality gate passed; CodeRabbit hit its hourly rate limit but its run-record confirms the diff was inspected.


Reviewed automatically by the PR-review agent (single-reviewer mode: opus 4.7). Reply if you need a human review.

@gemini-code-assist gemini-code-assist 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.

Code Review

This pull request updates the commit SHA for the ci-failure-analyst-reusable.yml workflow in both the documentation and the template file. Feedback indicates that a third file mentioned in the PR description, .github/workflows/ci-failure-analyst.lock.yml, is missing from the current changes and should be updated to ensure consistency and stability.

Comment thread templates/ci-failure-analyst.yml
@don-petry
don-petry merged commit b9d49c8 into main May 23, 2026
39 of 40 checks passed
@don-petry
don-petry deleted the fix/ci-analyst-template-pin-post-merge-sha branch May 23, 2026 02:38
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.

3 participants