Conversation
ワークフローディレクトリ配下にあることで GitHub Actions がワークフロー変更として検知しエラーになる問題を解消するため、ruby_versions.json をプロジェクトルートに移動し、参照先パスを更新する。 Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.github/workflows/ruby_versions.jsonをプロジェクトルートruby_versions.jsonに移動working-directory: .github/workflows/を削除し、ルート基準でファイルを参照するよう更新add_ruby_versions.ymlのadd-pathsおよびPR本文内のパス文字列を更新README.mdのリンクを更新背景
ワークフローディレクトリ配下にJSONファイルがあることで、GitHub Actionsが「ワークフローファイルの変更」として検知し、意図しない権限昇格チェックのエラーが発生していた。
関連: https://github.com/SonicGarden/ruby-base-image/actions/runs/25785917614/job/75739187240
Test plan
build.yml(PR時) のワークフローが正常に実行されることを確認add_ruby_versions.yml(手動dispatch) でPRが正常に作成されることを確認🤖 Generated with Claude Code