-
Notifications
You must be signed in to change notification settings - Fork 3
feat :Github actions 자동 배포 기능 구현 #165
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,20 @@ | ||||||||||||||||||||||||
| name: CD | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| on: | ||||||||||||||||||||||||
| push: | ||||||||||||||||||||||||
| branches: [ "main", "dev" ] | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| jobs: | ||||||||||||||||||||||||
| deploy: | ||||||||||||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||||||||||||
| steps: | ||||||||||||||||||||||||
| - uses: actions/checkout@v3 | ||||||||||||||||||||||||
| - name: Deploy to EC2 | ||||||||||||||||||||||||
| uses: appleboy/ssh-action@master | ||||||||||||||||||||||||
| with: | ||||||||||||||||||||||||
| host: ${{ secrets.EC2_HOST }} | ||||||||||||||||||||||||
| username: ubuntu | ||||||||||||||||||||||||
| key: ${{ secrets.EC2_SSH_KEY }} | ||||||||||||||||||||||||
|
Comment on lines
+13
to
+17
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🛠️ Refactor suggestion
- - name: Deploy to EC2
- uses: appleboy/ssh-action@master
+ - name: Deploy to EC2
+ uses: appleboy/[email protected] # 예시: 실제 latest 안정 버전으로 교체또한 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||||||||||||||||||||
| script: | | ||||||||||||||||||||||||
| cd /home/ubuntu/backend | ||||||||||||||||||||||||
| ../deploy-backend.sh | ||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Verification agent
🧩 Analysis chain
actions/checkout버전을 최신v4로 고정하세요v3태그는 2023-10 이후 더 이상 보안 업데이트를 받지 않습니다. GitHub 공식 권장 사항은 메이저 버전을 올리고 SHA-pin 혹은 특정 태그로 고정하여 재현성을 확보하는 것입니다.다음과 같이 수정 제안드립니다.
최신 릴리스 정보를 확인하기 위해 다음 웹 검색을 수행해주세요:
🌐 Web query:
💡 Result:
The latest version of
actions/checkoutis v4, as evidenced by multiple references encouraging or demonstrating its usage in workflows as of early 2025[4][7][10].Regarding the specific timeline:
actions/checkout@v3is considered outdated because it relies on Node.js 16, which has been deprecated by GitHub[7].Security updates for actions/checkout@v3 after October 2023:
actions/checkout@v3after October 2023.Summary Table:
Recommendation:
Update all workflows to use actions/checkout@v4 to ensure continued security and compatibility with GitHub Actions' current infrastructure[7][4].
Citations:
actions/checkout 액션을 v4로 업그레이드하세요
현재
.github/workflows/deploy.yml11행에서actions/checkout@v3을 사용 중인데, v3은 Node.js 16 기반으로 2023년 10월 이후 더 이상 보안 업데이트를 받지 않습니다.GitHub 공식 권장사항에 따라 최신 메이저 버전인 v4(현재 v4.1.4)를 사용해 주세요.
수정 위치:
.github/workflows/deploy.yml제안 변경사항:
이렇게 변경하면 지속적인 보안 패치와 호환성을 보장할 수 있습니다.
📝 Committable suggestion
🧰 Tools
🪛 actionlint (1.7.7)
11-11: the runner of "actions/checkout@v3" action is too old to run on GitHub Actions. update the action's version to fix this issue
(action)
🤖 Prompt for AI Agents