-
Notifications
You must be signed in to change notification settings - Fork 0
디스코드 봇 교체 #42
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
디스코드 봇 교체 #42
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 |
|---|---|---|
| @@ -1,8 +1,9 @@ | ||
| DISCORD_BOT_TOKEN= | ||
| DISCORD_TOKEN= | ||
| DISCORD_GUILD_ID= | ||
| DISCORD_PUBLIC_KEY= | ||
| DISCORD_ROLE_ID= | ||
| DISCORD_APPLICATION_ID= | ||
| GITHUB_APP_ID= | ||
| GITHUB_APP_INSTALLATION_ID= | ||
| GITHUB_APP_PRIVATE_KEY= | ||
| GH_PAT= | ||
| STUDY_JOIN_CHANNEL_ID= |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -41,21 +41,20 @@ jobs: | |
| apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }} | ||
| secrets: | | ||
| DISCORD_PUBLIC_KEY | ||
| DISCORD_BOT_TOKEN | ||
| DISCORD_TOKEN | ||
| DISCORD_GUILD_ID | ||
| DISCORD_ROLE_ID | ||
| DISCORD_APPLICATION_ID | ||
| APP_ID | ||
| APP_INSTALLATION_ID | ||
| APP_PRIVATE_KEY | ||
| GITHUB_APP_ID | ||
| GITHUB_APP_INSTALLATION_ID | ||
| GITHUB_APP_PRIVATE_KEY | ||
| GH_PAT | ||
| env: | ||
| DISCORD_PUBLIC_KEY: ${{ secrets.DISCORD_PUBLIC_KEY }} | ||
| DISCORD_BOT_TOKEN: ${{ secrets.DISCORD_BOT_TOKEN }} | ||
| DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }} | ||
| DISCORD_GUILD_ID: ${{ secrets.DISCORD_GUILD_ID }} | ||
| DISCORD_ROLE_ID: ${{ secrets.DISCORD_ROLE_ID }} | ||
|
Member
Author
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. 얘는 쓰이는데가 없어서 그냥 삭제하였습니다. |
||
| DISCORD_APPLICATION_ID: ${{ secrets.DISCORD_APPLICATION_ID }} | ||
| APP_ID: ${{ secrets.APP_ID }} | ||
| APP_INSTALLATION_ID: ${{ secrets.APP_INSTALLATION_ID }} | ||
| APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} | ||
| # GitHub App: 코드/Worker는 GITHUB_APP_* 를 읽지만, 기존 저장소 secret 이름은 APP_* 라 여기서 매핑 | ||
| GITHUB_APP_ID: ${{ secrets.APP_ID }} | ||
| GITHUB_APP_INSTALLATION_ID: ${{ secrets.APP_INSTALLATION_ID }} | ||
| GITHUB_APP_PRIVATE_KEY: ${{ secrets.APP_PRIVATE_KEY }} | ||
| GH_PAT: ${{ secrets.GH_PAT }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,20 +64,24 @@ community-manager/ | |
|
|
||
| | Key | 설명 | | ||
| | ---------------------------- | ------------------------------------------ | | ||
| | `DISCORD_PUBLIC_KEY` | Discord App의 Ed25519 공개키 (서명 검증용) | | ||
| | `DISCORD_BOT_TOKEN` | Discord Bot Token | | ||
| | `DISCORD_PUBLIC_KEY` | Discord App의 Ed25519 공개키, 서명 검증용 (조직 공용 봇) | | ||
| | `DISCORD_TOKEN` | Discord Bot Token (조직 공용 봇) | | ||
| | `DISCORD_APPLICATION_ID` | Discord Application ID (조직 공용 봇) | | ||
| | `DISCORD_GUILD_ID` | 대상 Discord 서버 ID | | ||
| | `DISCORD_ROLE_ID` | 부여할 역할 ID | | ||
| | `GITHUB_APP_ID` | GitHub App ID | | ||
| | `GITHUB_APP_INSTALLATION_ID` | GitHub App의 조직 Installation ID | | ||
| | `GITHUB_APP_PRIVATE_KEY` | GitHub App Private Key (PEM 형식) | | ||
| | `GH_PAT` | GitHub PAT (후원 조회 GraphQL용) | | ||
| | `STUDY_JOIN_CHANNEL_ID` | 스터디 신청 포럼 채널 ID (cron 자동 처리) | | ||
|
|
||
| > **봇 자격증명 일원화**: `DISCORD_TOKEN`·`DISCORD_PUBLIC_KEY`·`DISCORD_APPLICATION_ID`는 커뮤니티 공용 봇(`DaleStudy`)의 **조직 레벨** 시크릿이며, CI(GitHub Actions) 배포 시 자동으로 주입됩니다. 저장소별로 개인 봇 자격증명을 따로 관리하지 않습니다. | ||
|
|
||
| ### wrangler.jsonc vars (공개값, 커밋됨) | ||
|
|
||
| | Key | 설명 | | ||
| | ------------------ | ----------------- | | ||
| | `GITHUB_ORG` | GitHub 조직 이름 | | ||
| | `GITHUB_TEAM_SLUG` | 초대할 팀 slug | | ||
|
Member
Author
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. 요거는 outdated 된 거 같아서 함께 수정했습니다.
Contributor
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. 넵 저거 outdated 된게 맞네요! 감사합니다! |
||
| | `GITHUB_ORG` | GitHub 조직 이름 | | ||
| | `ROLE_TEAM_CONFIG` | 역할-팀 매핑 (JSON, 슬래시 선택지) | | ||
|
|
||
| ### 로컬 개발 (.dev.vars) | ||
|
|
||
|
|
||
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.
무슨 앱인지 너무 햇갈려서 앞에 GITHUB_ 접두어를 붙였습니다.
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.
저도 처음에 github를 넣었었는데 github를 뺀게 github를 빼면 워크플로우 어딘가에서 보안 관련 이슈로 막았던 걸로 기억합니다!
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.
이 부분 맥락을 기록해놓지 않아서 지금 어디인지 확실하지 않네요! 우선 넣어보고 문제가 보이면 대처해야할 것 같습니다!