fix(ci): check-sdk-update Create issue step outputs 보간 버그 수정 (#589)#593
Merged
Conversation
…문자 구문 파손 방지 (#589) ${{ steps.exports.outputs.* }}를 JS 템플릿 리터럴에 직접 보간하면 export diff 출력이 백틱·\${·따옴표·개행을 담을 때 YAML→JS 변환 결과가 구문 오류가 되어 step 전체가 throw됐다. env: 블록으로 이전해 process.env.NEW_EXPORTS / process.env.REMOVED_EXPORTS로 읽도록 수정. script 최외곽을 try/catch로 감싸 실패 시 core.setFailed로 명시적 에러 메시지를 남기도록 안전망 추가.
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.
요약
check-sdk-update.yml의Create issue if update availablestep이 실패하는 root-cause를 수정한다.${{ steps.exports.outputs.new_exports }}·${{ steps.exports.outputs.removed_exports }}를 JS 템플릿 리터럴 안에 직접 보간하던 코드(56–57행)를env:블록으로 이전. export diff 출력이 백틱·${·따옴표·개행을 포함하면 YAML→JS 치환 결과가 구문 오류가 되어 step 전체가 throw되는 전형적 "interpolation injection" 버그였다.process.env.NEW_EXPORTS/process.env.REMOVED_EXPORTS로 읽도록 변경 — 어떤 특수문자도 구문을 깨지 않는다.try { ... } catch (e) { core.setFailed(...) }로 감싸 향후 실패 시 침묵-실패 대신 명시적 에러 메시지를 남기도록 안전망 추가.root-cause 확정 여부
보간 버그 확정.
check-sdk-update.ts는process.exit(1)로 업데이트 감지를 신호하므로 outcome 게이트(steps.check.outcome == 'failure') 자체는 작동한다 — 게이트 리팩터 없이 보간 버그만 수정. PR 본문에 명시.검증
actionlint .github/workflows/check-sdk-update.yml→ 출력 없음 (오류 없음)workflow_dispatch로 e2e 검증 가능. 현재latest추적 버전 설치 상태라 수동 트리거 시 no-update 판정이 날 수 있어 e2e 그린은 강제하지 않음.Closes #589