Skip to content

fix: pin dependency-audit reusable workflow to SHA#219

Open
don-petry wants to merge 2 commits intomainfrom
claude/issue-158-20260419-2333
Open

fix: pin dependency-audit reusable workflow to SHA#219
don-petry wants to merge 2 commits intomainfrom
claude/issue-158-20260419-2333

Conversation

@don-petry
Copy link
Copy Markdown
Collaborator

@don-petry don-petry commented Apr 19, 2026

Summary

  • Pins the reusable workflow reference from @v1 to commit SHA ee22b427cbce9ecadcf2b436acb57c3adf0cb63d to satisfy the Action Pinning Policy.

Before:

uses: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@v1

After:

uses: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@ee22b427cbce9ecadcf2b436acb57c3adf0cb63d # v1

The SHA was resolved from the v1 tag via gh api repos/petry-projects/.github/git/refs/tags/v1.

Closes #158

Generated with Claude Code

Summary by CodeRabbit

  • Chores
    • Updated workflow dependency reference for improved build reproducibility and stability.

Pins the reusable workflow reference from @v1 to commit SHA to satisfy
the Action Pinning Policy (ci-standards.md#action-pinning-policy).

SHA ee22b427cbce9ecadcf2b436acb57c3adf0cb63d corresponds to the v1 tag
of petry-projects/.github as of 2026-04-19.

Closes #158

Co-authored-by: don-petry <don-petry@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 19, 2026 23:34
@don-petry
Copy link
Copy Markdown
Collaborator Author

This PR is ready for review and merge. @don-petry — you are the code owner, could you please review and merge this to close the compliance finding in issue #158? This is a single-line change pinning the reusable workflow SHA.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Apr 19, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 512b061f-e401-4d8f-87ae-0721a57a2244

📥 Commits

Reviewing files that changed from the base of the PR and between 92719c9 and 392499c.

📒 Files selected for processing (1)
  • .github/workflows/dependency-audit.yml

📝 Walkthrough

Walkthrough

Updated the reusable GitHub Actions workflow reference in .github/workflows/dependency-audit.yml from version tag @v1 to a pinned commit SHA to comply with action-pinning policy requirements.

Changes

Cohort / File(s) Summary
GitHub Actions Workflow Configuration
.github/workflows/dependency-audit.yml
Pinned reusable workflow reference from dependency-audit-reusable.yml@v1 to commit SHA ee22b427cbce9ecadcf2b436acb57c3adf0cb63d to enforce action-pinning compliance.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Possibly related issues

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately describes the main change: pinning the dependency-audit reusable workflow reference from a tag to a specific commit SHA.
Linked Issues check ✅ Passed The pull request successfully addresses issue #158 by pinning the unpinned dependency-audit-reusable.yml workflow reference to a specific commit SHA per the Action Pinning Policy.
Out of Scope Changes check ✅ Passed All changes are directly related to the linked issue #158; only the workflow reference was updated from @v1 tag to the pinned commit SHA with no unrelated modifications.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch claude/issue-158-20260419-2333

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.

@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Pins the dependency-audit reusable workflow reference to a specific commit SHA to satisfy the organization’s GitHub Actions pinning policy (closes #158).

Changes:

  • Replace @v1 with a commit SHA for petry-projects/.github/.github/workflows/dependency-audit-reusable.yml.
  • Add an inline # v1 note to preserve the semantic version context.

jobs:
dependency-audit:
uses: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@v1
uses: petry-projects/.github/.github/workflows/dependency-audit-reusable.yml@ee22b427cbce9ecadcf2b436acb57c3adf0cb63d # v1
Copy link

Copilot AI Apr 19, 2026

Choose a reason for hiding this comment

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

The header comment says you "MUST NOT change ... the uses: line", but this PR necessarily changes it to comply with the action pinning policy. Consider updating that guidance to reflect the intended maintenance process (e.g., uses should be pinned to a commit SHA, and only the SHA may be updated when the reusable workflow/tag advances) so future edits aren’t blocked by contradictory instructions.

Copilot uses AI. Check for mistakes.
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.

Compliance: unpinned-actions-dependency-audit.yml

2 participants