ci: pin dependabot-automerge reusable workflow to SHA#151
Conversation
📝 WalkthroughWalkthroughThis PR pins the ChangesWorkflow Reference Pinning
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related issues
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
Pull request overview
Pins the reusable Dependabot automerge workflow reference to an immutable commit SHA to satisfy the repository’s action-pinning compliance policy.
Changes:
- Update
.github/workflows/dependabot-automerge.ymlto use thepetry-projects/.githubreusable workflow at commitee22b427cbce9ecadcf2b436acb57c3adf0cb63dinstead of the mutablev1tag.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 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.
Inline comments:
In @.github/workflows/dependabot-automerge.yml:
- Line 38: Update the pinned commit SHA in the workflow uses line so it matches
the current v1 tag: replace the existing SHA after
petry-projects/.github/.github/workflows/dependabot-automerge-reusable.yml@
(currently ee22b427cbce9ecadcf2b436acb57c3adf0cb63d) with the correct SHA
b51e2edf830ea085be0277bcf3174c7b3ec8f958 to ensure the workflow uses the
intended v1 release.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Pro
Run ID: 80ca7066-d37b-4ace-b40f-94d7467b1bf2
📒 Files selected for processing (1)
.github/workflows/dependabot-automerge.yml
| contents: read | ||
| pull-requests: read | ||
| uses: petry-projects/.github/.github/workflows/dependabot-automerge-reusable.yml@v1 | ||
| uses: petry-projects/.github/.github/workflows/dependabot-automerge-reusable.yml@ee22b427cbce9ecadcf2b436acb57c3adf0cb63d # v1 |
There was a problem hiding this comment.
🧩 Analysis chain
🏁 Script executed:
#!/bin/bash
# Verify the pinned SHA matches the current v1 tag in petry-projects/.github,
# and confirm whether it is a commit SHA or an annotated-tag object SHA.
set -euo pipefail
PINNED_SHA="ee22b427cbce9ecadcf2b436acb57c3adf0cb63d"
echo "=== Resolving git/refs/tags/v1 ==="
REF_RESPONSE=$(gh api repos/petry-projects/.github/git/refs/tags/v1)
echo "$REF_RESPONSE" | jq .
REF_SHA=$(echo "$REF_RESPONSE" | jq -r '.object.sha')
REF_TYPE=$(echo "$REF_RESPONSE" | jq -r '.object.type')
echo ""
echo "=== Tag ref SHA: $REF_SHA (type: $REF_TYPE) ==="
if [ "$REF_TYPE" = "tag" ]; then
echo "Annotated tag detected — dereferencing to commit SHA..."
COMMIT_SHA=$(gh api "repos/petry-projects/.github/git/tags/$REF_SHA" | jq -r '.object.sha')
echo "Underlying commit SHA: $COMMIT_SHA"
else
COMMIT_SHA="$REF_SHA"
fi
echo ""
echo "=== Comparison ==="
echo "Pinned in workflow : $PINNED_SHA"
echo "Current commit SHA : $COMMIT_SHA"
if [ "$PINNED_SHA" = "$COMMIT_SHA" ]; then
echo "✅ SHA matches — correctly pinned to the commit."
elif [ "$PINNED_SHA" = "$REF_SHA" ] && [ "$REF_TYPE" = "tag" ]; then
echo "⚠️ SHA matches the tag OBJECT, not the underlying commit ($COMMIT_SHA). Consider updating to the commit SHA."
else
echo "❌ SHA MISMATCH — workflow is pinned to a stale or incorrect SHA."
fiRepository: petry-projects/broodly
Length of output: 759
Update the pinned SHA to match the current v1 tag.
The pinned SHA ee22b427cbce9ecadcf2b436acb57c3adf0cb63d does not match the current v1 tag in petry-projects/.github. The v1 tag currently resolves to b51e2edf830ea085be0277bcf3174c7b3ec8f958. Update line 38 to:
uses: petry-projects/.github/.github/workflows/dependabot-automerge-reusable.yml@b51e2edf830ea085be0277bcf3174c7b3ec8f958 # v1
The workflow is presently pinned to a stale commit and will not use the intended version.
🤖 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/dependabot-automerge.yml at line 38, Update the pinned
commit SHA in the workflow uses line so it matches the current v1 tag: replace
the existing SHA after
petry-projects/.github/.github/workflows/dependabot-automerge-reusable.yml@
(currently ee22b427cbce9ecadcf2b436acb57c3adf0cb63d) with the correct SHA
b51e2edf830ea085be0277bcf3174c7b3ec8f958 to ensure the workflow uses the
intended v1 release.
|
@claude Please address all open review comments on this PR from CodeRabbit and Copilot. |
|
Claude finished @don-petry's task in 37s —— View job Addressing Review Comments
SummaryI reviewed all open review comments from CodeRabbit and Copilot: Copilot — No actionable code changes. The Copilot comment was a high-level PR overview only. CodeRabbit (Critical) — Identified that the pinned SHA Required fix in # Before
uses: petry-projects/.github/.github/workflows/dependabot-automerge-reusable.yml@ee22b427cbce9ecadcf2b436acb57c3adf0cb63d # v1
# After
uses: petry-projects/.github/.github/workflows/dependabot-automerge-reusable.yml@b51e2edf830ea085be0277bcf3174c7b3ec8f958 # v1However, I'm unable to apply this fix directly. GitHub App permissions do not allow me to modify files in the You can apply the fix locally with: sed -i 's/ee22b427cbce9ecadcf2b436acb57c3adf0cb63d/b51e2edf830ea085be0277bcf3174c7b3ec8f958/' .github/workflows/dependabot-automerge.yml
git add .github/workflows/dependabot-automerge.yml
git commit -m "ci: update dependabot-automerge SHA to current v1 tag"
git push |
|
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
@dev-lead - please fix this PR |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Auto-rebase failed — merge conflict — this branch has conflicts with dev-lead will attempt to resolve this automatically. If it cannot, a follow-up comment will explain what needs manual attention. To resolve manually instead: |
|
Closing due to merge conflict that cannot be auto-rebased. Re-implementing from fresh main via dev-lead. |
Pull request was closed



Summary
dependabot-automerge-reusable.ymlreference from@v1to its current commit SHA (ee22b427cbce9ecadcf2b436acb57c3adf0cb63d # v1) per the action-pinning policy.gh api repos/petry-projects/.github/git/refs/tags/v1.ae9709f4…) that no longer matches the currentv1tag — please close that PR.Closes #101
Generated with Claude Code
Summary by CodeRabbit