Skip to content

Conversation

@dyoung522
Copy link
Contributor

No description provided.

Copilot AI review requested due to automatic review settings January 12, 2026 06:04
Copy link

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

This PR updates the ruby/setup-ruby GitHub Action from a pinned SHA with version comment to using the v1 version tag across two workflow jobs (test and audit).

Changes:

  • Replaced SHA-pinned action reference (ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0) with version tag (@v1) for easier maintenance

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

# Add or replace dependency steps here
- name: Install Ruby and gems
uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0
uses: ruby/setup-ruby@v1
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

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

Changing from a pinned SHA to a version tag reduces security. The previous approach using a pinned SHA (ee2113536afb7f793eed4ce60e8d3b26db912da4) with a version comment (v1.127.0) follows GitHub's security best practices for Actions. SHA pinning prevents potential supply chain attacks where a tag could be moved to point to malicious code. Consider reverting to SHA pinning or, if you prefer tags for easier updates, use a specific version tag like 'v1.127.0' instead of the moving 'v1' tag.

Copilot uses AI. Check for mistakes.
uses: actions/checkout@v3
- name: Install Ruby and gems
uses: ruby/setup-ruby@ee2113536afb7f793eed4ce60e8d3b26db912da4 # v1.127.0
uses: ruby/setup-ruby@v1
Copy link

Copilot AI Jan 12, 2026

Choose a reason for hiding this comment

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

Changing from a pinned SHA to a version tag reduces security. The previous approach using a pinned SHA (ee2113536afb7f793eed4ce60e8d3b26db912da4) with a version comment (v1.127.0) follows GitHub's security best practices for Actions. SHA pinning prevents potential supply chain attacks where a tag could be moved to point to malicious code. Consider reverting to SHA pinning or, if you prefer tags for easier updates, use a specific version tag like 'v1.127.0' instead of the moving 'v1' tag.

Copilot uses AI. Check for mistakes.
@dyoung522 dyoung522 closed this Jan 12, 2026
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.

2 participants