fix(ci): run-gemini-cli 임시 산출물이 PR에 포함되지 않도록 제외·정리한다
This commit is contained in:
1 parent
f6b519648f
commit
dbc107710b
2 files changed
+6
No files matched your search
@@ -120,6 +120,9 @@ jobs:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
# 0) run-gemini-cli가 남긴 임시 디렉토리 정리
|
||||
rm -rf .gemini gemini-artifacts
|
||||
|
||||
# 1) 보호 경로 수정 여부 강제 검증 (push 이전 차단)
|
||||
CHANGED="$(git diff --name-only origin/main...HEAD; git status --porcelain | awk '{print $2}')"
|
||||
if echo "$CHANGED" | grep -Eq '^(\.github/workflows/|deploy/)'; then
|
||||
@@ -235,6 +238,7 @@ jobs:
|
||||
PR_NUMBER: ${{ github.event.issue.number }}
|
||||
run: |
|
||||
set -euo pipefail
|
||||
rm -rf .gemini gemini-artifacts
|
||||
CHANGED="$(git diff --name-only origin/main...HEAD; git status --porcelain | awk '{print $2}')"
|
||||
if echo "$CHANGED" | grep -Eq '^(\.github/workflows/|deploy/)'; then
|
||||
echo "::error::보안 가드레일 위반: AI가 보호 경로(.github/workflows/ 또는 deploy/)를 수정했습니다."
|
||||
|
||||
@@ -2,6 +2,8 @@ node_modules/
|
||||
deploy/.env
|
||||
.vscode/
|
||||
/.worktrees/
|
||||
/.gemini/
|
||||
/gemini-artifacts/
|
||||
/.claude/*
|
||||
!/.claude/settings.json
|
||||
skills-lock.json
|
||||
Reference in new issue
Block a user