-
Notifications
You must be signed in to change notification settings - Fork 10
Prince/Add shiftai workflows #25
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
Closed
Closed
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
- AI Code Analysis: Analyzes AI-generated code in PRs with workflow_call support - AI Dashboard: Tracks merged PRs and maintains AI usage dashboard - Self-contained with included generate-dashboard.js script - Comprehensive security validations and reusable inputs
- Move ai-code-analysis.yml to .github/workflows/ (required by GitHub) - Move ai-dashboard.yml to .github/workflows/ (required by GitHub) - Move scripts to .github/scripts/ (correct path) - Fixes: workflows must be defined at the top level of .github/workflows/
- Move tokens from inputs to secrets section (GitHub requirement) - PERSONAL_ACCESS_TOKEN now properly handled as secret - GITHUB_TOKEN and SHIFTAI_TOKEN use secrets context - Simplified inputs to only essential customizations - Follows GitHub's security best practices
- Rename GITHUB_TOKEN to GH_TOKEN (GitHub reserves GITHUB_TOKEN) - Fixes error: secret name GITHUB_TOKEN within workflow_call collides with system reserved name - Maintains same functionality with non-reserved secret name
- Remove explicit secret definitions that aren't needed with inherit - Use original GITHUB_TOKEN name (works with inherit) - Cleaner calling syntax: just 'secrets: inherit' - Maintains compatibility with explicit secret passing
- Remove undefined secrets.GITHUB_TOKEN references - Use github.token which is always available - Add test file with AI code blocks for testing - Ready for production use with 'secrets: inherit'
- Remove workflow_call section entirely - Let's see what the actual error is now - Will add back with proper fix once we identify root cause
- Restore workflow_call section after debugging - Only define PERSONAL_ACCESS_TOKEN in secrets - Use github.token directly, no secrets.GITHUB_TOKEN reference - Should fix Invalid secret GITHUB_TOKEN is not defined error
- Define GITHUB_TOKEN as optional secret to support secrets: inherit - Required when caller uses secrets: inherit with GITHUB_TOKEN - Should fix persistent Invalid secret GITHUB_TOKEN not defined error
…llision - Remove GITHUB_TOKEN from workflow_call secrets (GitHub reserved name) - Keep only PERSONAL_ACCESS_TOKEN as required secret - Use github.token directly in workflow (always available) - Breaks the catch-22 loop - ready for production
- Add github_token as optional input to avoid reserved name collision - Use inputs.github_token || github.token pattern - Should finally resolve the persistent GITHUB_TOKEN validation error - Avoids GitHub's secret reserved name restrictions
- Minimal reusable workflow to test basic functionality - No complex logic, just echo statements - Will help isolate if issue is workflow complexity or basic setup
- Simple test workflow worked, confirming basic setup is fine - Issue was specific to our complex AI workflow - Ready to test actual AI workflow now
Dependency ReviewThe following issues were found:
License Issues.github/workflows/ai-code-analysis.yml
OpenSSF Scorecard
Scanned Manifest Files.github/workflows/ai-code-analysis.yml
.github/workflows/ai-dashboard.yml |
- Replace external script download with inline script creation - Fixes 404 error when workflow tries to download from non-existent repo - Remove separate .github/scripts/generate-dashboard.js file (no longer needed) - Now works correctly in reusable workflow context
Fix: Embed dashboard script inline to solve 404 error
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.
No description provided.