Skip to content

chore: sync with upstream v1.344.0 - #30

Merged
anurag-stepsecurity merged 2 commits into
mainfrom
auto-cherry-pick
Nov 26, 2026
Merged

anurag-stepsecurity merged 2 commits into
mainfrom
auto-cherry-pick

Conversation

@anurag-stepsecurity

Copy link
Copy Markdown
Contributor

@anurag-stepsecurity

Copy link
Copy Markdown
Contributor Author

📦 Target Release Version: v1.344.0
📋 Previous Release Version: v1.329.0

@anurag-stepsecurity anurag-stepsecurity added the review-required Request Claude AI code review on the PR label Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Cherry-Pick Verification Report

📦 Upstream Changes: v1.329.0...v1.344.0

📋 File-by-File Analysis:

.github/workflows/test.yml

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ❌ No
  • Status: 🟡 Partial - ❌ Cherry-pick incomplete (+98 -11) | Missing 3 additions | Missing 3 deletions

README.md

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+15 -9)

bundler.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+8 -3)

common.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+2 -1)

generate-test-matrix.rb

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+5 -3)

generate-windows-versions.rb

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+5 -3)

index.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+0 -2)

ruby-builder-versions.json

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+6 -6)

ruby-builder.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ❌ No
  • Status: 🟡 Partial - ❌ Cherry-pick incomplete (+37 -1) | Missing 1 deletions

rubygems.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+11 -10)

windows-toolchain-versions.json

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+69 -46)

windows-versions.json

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+29 -6)

windows.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+51 -22)

📊 Summary:

  • Total files changed upstream: 13
  • Files present in PR: 13/13
  • Files with matching changes: 11/13

⚠️ Overall Status: 🟡 PARTIAL - All files present but some changes missing

1 similar comment
@github-actions

Copy link
Copy Markdown
Contributor

🔍 Cherry-Pick Verification Report

📦 Upstream Changes: v1.329.0...v1.344.0

📋 File-by-File Analysis:

.github/workflows/test.yml

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ❌ No
  • Status: 🟡 Partial - ❌ Cherry-pick incomplete (+98 -11) | Missing 3 additions | Missing 3 deletions

README.md

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+15 -9)

bundler.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+8 -3)

common.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+2 -1)

generate-test-matrix.rb

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+5 -3)

generate-windows-versions.rb

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+5 -3)

index.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+0 -2)

ruby-builder-versions.json

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+6 -6)

ruby-builder.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ❌ No
  • Status: 🟡 Partial - ❌ Cherry-pick incomplete (+37 -1) | Missing 1 deletions

rubygems.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+11 -10)

windows-toolchain-versions.json

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+69 -46)

windows-versions.json

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+29 -6)

windows.js

  • Upstream has changes: ✅ Yes
  • File exists in PR: ✅ Yes
  • Changes match: ✅ Yes
  • Status: 🟢 Perfect - ✅ All changes applied correctly (+51 -22)

📊 Summary:

  • Total files changed upstream: 13
  • Files present in PR: 13/13
  • Files with matching changes: 11/13

⚠️ Overall Status: 🟡 PARTIAL - All files present but some changes missing

@github-actions

Copy link
Copy Markdown
Contributor

PR Review

Action Type

Node-based — uses runs: using: 'node24' in action.yml, bundled via yarn package (ncc).


✅ Passed Checks

  • License: Present with copyright of both StepSecurity and original author (Benoit Daloze, 2019).
  • action.yml: Present with author: 'step-security'.
  • SECURITY.md: Present.
  • No FUNDING.yml: Confirmed absent.
  • No renovate.json: Confirmed absent.
  • No PULL_REQUEST.md: Confirmed absent.
  • No ISSUE_TEMPLATE folder: Confirmed absent.
  • No CHANGELOG.md: Confirmed absent.
  • No .vscode folder: Confirmed absent.
  • .github/workflows/auto_cherry_pick.yml: Present and includes script input (set to yarn package).
  • .github/workflows/actions_release.yml: Present and includes script input (set to yarn package).
  • package.json author: "step-security" ✓
  • package.json repository: URL contains step-security ✓
  • dist/index.js: Present and rebuilt.
  • README banner: StepSecurity Maintained Action banner present on line 1 ✓
  • README versioning: All usage examples reference step-security/setup-ruby@v1 (major version only, no full semver tags) ✓
  • Subscription check URL: index.js calls https://agent.api.stepsecurity.io/v1/github/${process.env.GITHUB_REPOSITORY}/actions/maintained-actions-subscription ✓
  • upstream variable: 'ruby/setup-ruby' in index.js correctly matches original-owner: "ruby" + repo-name: "setup-ruby" from auto_cherry_pick.yml ✓

❌ Failed Checks

  • package.json version not updated: The version field in package.json is still "1.329.0", but config.json confirms the upstream sync target is v1.344.0. The package.json version must be bumped to "1.344.0" to stay consistent with the synced upstream tag.

⚠️ Warnings

  • PR is in DRAFT state: The PR should be marked ready for review before merge.
  • package.json package manager is yarn (not npm): The script input in both auto_cherry_pick.yml and actions_release.yml is correctly set to "yarn package" to account for this — no action needed, flagging for awareness.

🔒 Security Findings

  • Positive — Token scope fix (common.js:448-449): This PR introduces an important security improvement: the GitHub authentication token is now only forwarded when the download URL hostname is exactly github.com. Previously, the token could have been sent to external hosts such as cache.ruby-lang.org (used for Windows mswin builds), risking accidental token leakage. The fix is correct.
  • No other security vulnerabilities found.

Summary

The upstream sync to v1.344.0 looks correct and includes a meaningful security hardening of the token handling. The only blocking issue is that package.json version ("1.329.0") was not bumped to "1.344.0" to match the synced upstream tag recorded in config.json.

@github-actions

Copy link
Copy Markdown
Contributor

PR Review posted via inline comment tool

Comment thread config.json Resolved
@anurag-stepsecurity
anurag-stepsecurity marked this pull request as ready for review November 25, 2026 15:22
@anurag-stepsecurity anurag-stepsecurity removed the review-required Request Claude AI code review on the PR label Nov 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

PR Review - Action Type: Node-based (node24, dist/index.js, yarn package)

PASSED: License OK (Benoit Daloze + StepSecurity); action.yml author=step-security; SECURITY.md present; FUNDING.yml absent; auto_cherry_pick.yml + actions_release.yml present with script input; renovate.json/PULL_REQUEST.md/ISSUE_TEMPLATE/CHANGELOG.md/.vscode absent; README uses @v1 only; StepSecurity banner present; subscription check correct; upstream=ruby/setup-ruby matches auto_cherry_pick.yml; dist/ present; package.json author=step-security; config.json updated to v1.344.0.

FAILED: (1) package.json version still 1.329.0 - must update to 1.344.0 to match upstream sync. (2) 3 new test jobs (testFixedRubygemsBetaVersionUpgrades, testFixedRubygemsBetaVersionNoop, testTwiceInSameJob) use unpinned actions/checkout@v7 - existing jobs use full SHA 3d3c42e5aac5ba805825da76410c181273ba90b1. (3) testFixedRubygemsBetaVersionUpgrades and testFixedRubygemsBetaVersionNoop missing step-security/harden-runner@v2. (4) testTwiceInSameJob not listed in result job needs - failures won't block CI.

SECURITY: Token leak fix in common.js is a positive improvement - GitHub token was previously forwarded to ALL download URLs including cache.ruby-lang.org; now restricted to github.com only. compareGemVersion uses argument arrays (no injection risk). No other vulnerabilities found.

SUMMARY: PR syncs ruby/setup-ruby v1.329.0 to v1.344.0 with a critical token leak fix. Fix 4 issues before merge: update package.json version, pin checkout SHA in 3 new test jobs, add harden-runner to 2 new beta jobs, add testTwiceInSameJob to result needs.

Comment thread .github/workflows/test.yml Resolved
Comment thread .github/workflows/test.yml Resolved
Comment thread .github/workflows/test.yml Resolved
Comment thread .github/workflows/test.yml Resolved
Comment thread package.json Resolved
Signed-off-by: Anurag Rajawat <anurag@stepsecurity.io>
@anurag-stepsecurity

Copy link
Copy Markdown
Contributor Author

Sync verification

Caution

4 items need review: 1 conflict resolved by hand, 3 unexpected changes.

Upstream Versions Files dist/ reproducible config.json
ruby/setup-ruby v1.329.0 → v1.344.0 · compare 18 ✅ ✅

Review these

✅ 5 files: exactly upstream's version
✅ 6 files: upstream's changes alongside StepSecurity's
✅ 2 files: build output or lockfiles, rebuilt from source
✅ 1 file: checked field by field
✋ 1 file: conflicts resolved by hand
🚨 3 files: unexpected changes
✅ config.json checks
Check Result
config.json is valid ✅
upstream.repository ✅
upstream.synced_tag is an upstream release ✅
upstream.synced_commit matches the tag ✅
upstream.synced_tag is the newest release ✅
upstream.archived ✅
onboarding_type ✅
action_type ✅
✅ Build checks
Check Result
dist/ is a reproducible build of the PR ✅
✅ Integrity checks
Check Result
every action's type is supported ✅
actions are node24 with their entrypoints built ✅
the subscription check is called ✅
every lockfile has its package.json ✅
our workflows are unchanged ✅
removed upstream files stay removed ✅
files upstream deleted are gone ✅
no workflow gains write permissions ✅
the PR description is the upstream compare link ✅

@anurag-stepsecurity
anurag-stepsecurity merged commit df0091b into main Nov 26, 2026
481 of 482 checks passed
@anurag-stepsecurity
anurag-stepsecurity deleted the auto-cherry-pick branch November 26, 2026 04:18
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