We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19bb1ac commit 91f1966Copy full SHA for 91f1966
.github/workflows/build_release_and_notify.yml
@@ -75,6 +75,8 @@ jobs:
75
# 6. PyInstaller를 사용해 파이썬 코드를 실행 파일로 만듭니다.
76
- name: Build executable with PyInstaller
77
shell: bash
78
+ env:
79
+ ENV_AES256_KEY: ${{ secrets.ENV_AES256_KEY }}
80
run: poetry run pyinstaller --clean --additional-hooks-dir ./hooks --add-data "app/assets:assets" --onefile --name ${{ env.EXE_NAME }} app/main.py
81
82
# 7. 빌드된 실행 파일을 다음 단계(deploy)에서 사용할 수 있도록 아티팩트로 업로드합니다.
app/core/security.py
@@ -9,7 +9,7 @@
9
- 암호화 시 매번 새로운 랜덤 IV를 생성합니다.
10
"""
11
class AES256:
12
- _key = "Y1dkbGJtbGxMbUZsY3pJMU5pNXJaWGs9".encode('utf-8')
+ _key = base64.b64decode(os.getenv("ENV_AES256_KEY"))
13
14
@staticmethod
15
def encrypt(text: str) -> str:
0 commit comments