Skip to content

Replace service account with OAuth2 for calendar attendee management#572

Merged
jongfeel merged 1 commit into
mainfrom
fix/calendar-oauth2-attendees
Jun 8, 2026
Merged

Replace service account with OAuth2 for calendar attendee management#572
jongfeel merged 1 commit into
mainfrom
fix/calendar-oauth2-attendees

Conversation

@jongfeel

@jongfeel jongfeel commented Jun 8, 2026

Copy link
Copy Markdown
Member

Summary

  • add-assignee-to-calendar.yml: 서비스 계정 → OAuth2 사용자 인증으로 교체
  • scripts/get_calendar_oauth_token.py: 일회성 refresh token 발급 헬퍼 스크립트 추가

변경 이유

서비스 계정은 Domain-Wide Delegation 없이 캘린더 참석자를 초대할 수 없으며, 개인 Google 계정에서는 DWD를 사용할 수 없습니다.

사전 작업 (PR merge 후 필요)

  1. Google Cloud Console → APIs & Services → Credentials
  2. OAuth2 Client ID 생성 (유형: Desktop app)
  3. 로컬에서 헬퍼 스크립트 실행:
    pip install google-auth-oauthlib
    python scripts/get_calendar_oauth_token.py <client_id> <client_secret>
  4. 브라우저에서 jongfeel Google 계정으로 인증
  5. 출력된 세 값을 GitHub repo secrets에 추가:
    • GOOGLE_OAUTH2_CLIENT_ID
    • GOOGLE_OAUTH2_CLIENT_SECRET
    • GOOGLE_OAUTH2_REFRESH_TOKEN

Test plan

  • 헬퍼 스크립트로 refresh token 발급 확인
  • GitHub secrets 설정 후 issue assigned 이벤트로 워크플로우 동작 확인

🤖 Generated with Claude Code

…endee management

Service accounts cannot invite attendees without Domain-Wide Delegation,
which is unavailable for personal Google accounts. Switch to OAuth2
user credentials (stored as GitHub secrets) to add guests to calendar events.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jongfeel jongfeel merged commit 3a4daa6 into main Jun 8, 2026
1 check passed
@jongfeel jongfeel deleted the fix/calendar-oauth2-attendees branch June 8, 2026 07:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant