Skip to content

Commit

Permalink
fix: 테스트용 workflow 환경변수 수정
Browse files Browse the repository at this point in the history
- 토큰 만료길이도 Actions 시크릿으로 받아옴
  • Loading branch information
yoondgu committed Aug 12, 2023
1 parent 94af670 commit 61c5bdf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/be-pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,9 @@ jobs:
distribution: 'temurin'

- name: 환경변수 설정
run: echo "TEST_JWT_SECRET_KEY=${{ secrets.TEST_JWT_SECRET_KEY }}" >> $GITHUB_ENV
run: |
echo "TEST_JWT_SECRET_KEY=${{ secrets.TEST_JWT_SECRET_KEY }}" >> $GITHUB_ENV
echo "TEST_JWT_EXPIRE_LENGTH=${{ secrets.TEST_JWT_EXPIRE_LENGTH }}" >> $GITHUB_ENV

- name: gradlew 실행 권한 부여
run: chmod +x gradlew
Expand Down
2 changes: 1 addition & 1 deletion backend/src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ security:
jwt:
token:
secret-key: ${TEST_JWT_SECRET_KEY}
expire-length: ${TEST_JWT_SECRET_KEY}
expire-length: ${TEST_JWT_EXPIRE_LENGTH}

0 comments on commit 61c5bdf

Please sign in to comment.