Uh oh!
There was an error while loading. Please reload this page.
[PL-408] GitHub Actions 참조를 커밋 SHA 로 고정 - #45
Merged
Conversation
☂️ Code Coverage
Overall Coverage
New FilesNo new covered files... Modified FilesNo covered modified files...
|
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 freeto 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.
Description 🔍
배경
액션을 태그(
@v5)로 부르면 액션 저장소 주인이 태그를 다른 커밋으로 옮기는 순간 우리 CI 가 다른 코드를 실행합니다. 워크플로 파일은 그대로인데 내용만 바뀝니다.2025년
tj-actions/changed-files사고가 이 방식이었고, 태그로 부르던 저장소들이 빌드 로그에 시크릿을 노출했습니다.조직 전체에서 미고정 참조 974건을 확인했습니다. 저장소 70곳에 같은 형태의 PR 을 엽니다.
변경 사항
이 저장소 워크플로 2개의 외부 액션 참조 8건을 커밋 SHA 로 고정합니다.
실행되는 코드는 지금과 같습니다 - 각 참조를 그 태그가 현재 가리키는 커밋으로 바꾸기만 했고, 동작·이름·트리거는 건드리지 않았습니다.
대상 브랜치는
master입니다.조직 내부
8percent/*reusable workflow 참조는 고정하지 않습니다 - 우리 소유라 태그 탈취 위험이 없고, 중앙 워크플로는 최신main을 따라야 합니다.구현 내용
.github/workflows/ci.yml: 참조 7건을 고정합니다..github/workflows/release_drafter.yml: 참조 1건을 고정합니다.원래 태그는 SHA 뒤에 주석으로 남겨 어떤 버전인지 읽을 수 있게 합니다.
SHA 는 각 액션 저장소에서 해당 태그가 가리키는 커밋을 조회해 채웠습니다.
향후 계획 (선택사항)
고정이 끝나면 조직 설정으로 미고정 참조를 차단합니다. 적용 시점은 따로 공지합니다.
새 액션을 추가할 때는 태그 대신 커밋 SHA 와 버전 주석으로 적어주시면 됩니다.
참고 자료
리뷰해주시면 보안팀이 머지하겠습니다. 2026-09-09 까지 리뷰를 부탁드립니다.
관련 Jira 이슈: PL-408
https://claude.ai/code/session_0142eVjvJeP3DSh61ujeb4Kc