Skip to content

🔧 Workflow 보안 경계 강화 - #169

Open
Jwaminju wants to merge 2 commits into
mainfrom
codex/workflow-security-hardening
Open

🔧 Workflow 보안 경계 강화#169
Jwaminju wants to merge 2 commits into
mainfrom
codex/workflow-security-hardening

Conversation

@Jwaminju

@Jwaminju Jwaminju commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

요약

  • PR preview cleanup의 pull_request_target 사용 의도를 주석으로 명시하고 base repo PR에만 실행되도록 guard를 추가합니다.
  • hf-workflow가 public repo가 되었으므로, HF Agent caller의 workflow tools checkout에서 KREW_BOT_TOKEN 사용을 제거합니다.
  • mutation/push/API write가 필요한 reusable workflow 호출에는 기존 secret 전달을 유지합니다.

검증

  • 변경한 workflow YAML parse 확인
  • git diff --check 통과

기대 효과

  • 외부 PR head code를 pull_request_target context에서 실행하지 않는 원칙을 workflow에 명시합니다.
  • public workflow tools checkout에는 privileged bot token을 쓰지 않아 secret 사용 범위를 줄입니다.

@github-actions

github-actions Bot commented Jul 13, 2026

Copy link
Copy Markdown
Contributor
PR Preview Action v1.8.1

🚀 View preview at
https://hugging-face-krew.github.io/pr-preview/pr-169/

Built to branch gh-pages at 2026-08-03 08:23 UTC.
Preview will be ready when the GitHub Pages deployment is complete.

@hyeonseo2

Copy link
Copy Markdown
Collaborator

레포 지정과 시크릿 제거 적용 감사합니다! 저는 다른 피드백 사항 없습니다~

@Jwaminju

Copy link
Copy Markdown
Collaborator Author

At least 1 approving review is required by reviewers with write access.

@hyeonseo2 현서님 혹시 approval 눌러주실 수 있을까용? merge protection이 생겨서용!

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