ci: add weekly cleanup of expired e2e PATs#1691
Open
ralphbean wants to merge 1 commit into
Open
Conversation
Site previewPreview: https://eedaf891-site.fullsend-ai.workers.dev Commit: |
ReviewFindingsMedium
Low
Previous runReviewFindingsMedium
Info
|
The botsend account used by e2e tests accumulates classic PATs over time when test runs crash or time out before cleanup. Add a Playwright- based script that paginates the GitHub tokens settings page, deletes all expired tokens, and reports how many remain. - hack/cleanup-pats: bash wrapper for manual use - hack/cleanup-pats.go: Playwright Go program that deletes expired PATs via fetch+POST against each token's delete form - .github/workflows/pat-cleanup.yml: weekly cron (Sundays 4am UTC) using the existing E2E_GITHUB_SESSION secret Closes #1683 Assisted-by: Claude Opus 4.6 <noreply@anthropic.com> Signed-off-by: Ralph Bean <rbean@redhat.com>
2e9fb8b to
e9955f2
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
hack/cleanup-patsscript that uses Playwright to delete expired classic PATs from the botsend e2e test account.github/workflows/pat-cleanup.ymlweekly cron (Sundays 4am UTC) + manual triggerE2E_GITHUB_SESSIONsecret to authenticateThe botsend account accumulates PATs from e2e runs that crash or time out before
t.Cleanupruns. The script paginates from last page to first, deleting expired tokens via fetch+POST, and stops when it hits a page with no expired tokens.Closes #1683
Test plan
🤖 Generated with Claude Code