Skip to content

Commit 91f1966

Browse files
refactor: key를 git에서 받아서 사용 하도록 수정
1 parent 19bb1ac commit 91f1966

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build_release_and_notify.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,8 @@ jobs:
7575
# 6. PyInstaller를 사용해 파이썬 코드를 실행 파일로 만듭니다.
7676
- name: Build executable with PyInstaller
7777
shell: bash
78+
env:
79+
ENV_AES256_KEY: ${{ secrets.ENV_AES256_KEY }}
7880
run: poetry run pyinstaller --clean --additional-hooks-dir ./hooks --add-data "app/assets:assets" --onefile --name ${{ env.EXE_NAME }} app/main.py
7981

8082
# 7. 빌드된 실행 파일을 다음 단계(deploy)에서 사용할 수 있도록 아티팩트로 업로드합니다.

app/core/security.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
- 암호화 시 매번 새로운 랜덤 IV를 생성합니다.
1010
"""
1111
class AES256:
12-
_key = "Y1dkbGJtbGxMbUZsY3pJMU5pNXJaWGs9".encode('utf-8')
12+
_key = base64.b64decode(os.getenv("ENV_AES256_KEY"))
1313

1414
@staticmethod
1515
def encrypt(text: str) -> str:

0 commit comments

Comments
 (0)