Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Restore handler test coverage for the token-rotation path

Aperta
#63 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
68/100
Tipo di issue
Refactoring
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
aws, github, typescript
Ambito
cloud, testing

Direzione di ricerca

Leggi apps/token-rotator/src/main.spec.ts insieme a guard.spec.ts e stringHelpers.spec.ts, quindi esegui i test di token-rotator per riprodurre il caso saltato. Ripristina una copertura deterministica del percorso GitHub-auth, registration-token e SSM-put senza credenziali sottoposte al controllo versione; il lavoro è completato quando il test dell'handler passa in modo affidabile e non è più saltato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Context

PR #62 skipped lambdas › token-rotator › completes without error (apps/token-rotator/src/main.spec.ts) because it is a live-API test wired to a dead fixture: the committed .env.test authenticated as GitHub App 217830 in the third-party skedrocket org, which no longer exists — the GitHub API returns "Integration not found" unconditionally, so the test failed 100% of the time on every branch (verified on Renovate branches predating that PR).

That skip leaves the entire GitHub-auth → registration-token → SSM-put path with zero test coverage (the only other specs are guard.spec.ts and stringHelpers.spec.ts; libs/github has none). No working coverage was lost, but this must not become permanent.

Restoration options

  1. Hermetic (preferred): mock the GitHub API (e.g. nock) so the handler test runs without live credentials — deterministic, no secrets.
  2. Live: recreate a dedicated test App under the cloudposse org and inject its ID/key via repo secrets (never a committed file).

Hygiene follow-up

.env.test committed the dead App's private key at the repo root; PR #62 replaces it with placeholders, but the key remains in git history — inert (the App is deleted), but worth removing per policy if history-rewrites are ever done.

Refs: #62

Lingua principale
TypeScript
Stelle
3
Fork
1
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di cloudposse/lambda-github-action-token-rotator

Tutte le issue di cloudposse/lambda-github-action-token-rotator

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.