-
Notifications
You must be signed in to change notification settings - Fork 46
Add secrets diagnostics workflow for repository health monitoring #9850
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
Merged
Conversation
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
- Create JavaScript diagnostic script (.github/scripts/secrets-diagnostics.cjs) - Tests GH_AW_GITHUB_TOKEN with REST and GraphQL APIs - Tests GH_AW_GITHUB_MCP_SERVER_TOKEN and GH_AW_PROJECT_GITHUB_TOKEN - Tests GH_AW_COPILOT_TOKEN (Copilot CLI availability) - Tests ANTHROPIC_API_KEY, OPENAI_API_KEY, BRAVE_API_KEY, NOTION_API_TOKEN - Generates detailed markdown report with status for each secret - Provides recommendations for not-set and failed secrets - Create GitHub Actions workflow (.github/workflows/secrets-diagnostics.yml) - Runs on workflow_dispatch and weekly schedule (Mondays at 9 AM UTC) - Executes diagnostic script with all known secrets - Uploads diagnostics.md as artifact (30-day retention) - Displays report in step summary - Informational only - does not fail on secret issues Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
- Create comprehensive README for the workflow - Document all tested secrets and their purposes - Explain test result statuses and report structure - Include usage instructions and troubleshooting guide - Provide examples for adding new secrets Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add action workflow for running diagnostic tests on secrets
Add secrets diagnostics workflow for repository health monitoring
Jan 13, 2026
pelikhan
reviewed
Jan 13, 2026
| @@ -0,0 +1,199 @@ | |||
| # Secrets Diagnostics Workflow | |||
Contributor
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.
@copilot delete this file
Contributor
Author
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.
Done in 37bfc6f
As requested in PR review feedback. Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
pelikhan
approved these changes
Jan 13, 2026
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.
Implements automated diagnostics for repository secrets to proactively identify configuration issues and API access failures.
Implementation
Diagnostic Script (
.github/scripts/secrets-diagnostics.cjs)Workflow (
.github/workflows/secrets-diagnostics.yml)workflow_dispatch+ weekly schedule (Mon 9AM UTC)Report Structure
Recommendations
Failed Tests
OPENAI_API_KEY- Invalid key (401)Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.