fix(ci): use valid repository-projects permission key - #2
Closed
prabu-openclaw wants to merge 3 commits into
Closed
prabu-openclaw wants to merge 3 commits into
prabu-openclaw wants to merge 3 commits into
Conversation
The project-collaboration workflow declared 'projects: write', which is not a valid GitHub Actions permission scope. The invalid key makes the whole workflow file fail validation, so GitHub emitted a zero-job failed run on every push - despite the workflow only declaring issues/pull_request triggers. That is the red X that has been appearing on every push. Replaces it with 'repository-projects: write', the real scope name.
Author
This stack of pull requests is managed by Graphite. Learn more about stacking. |
Two problems made CodeQL fail on every run: 1. Missing 'actions: read'. On private repos the CodeQL action must read the workflow run via the Actions API; without it the job died with 'Resource not accessible by integration'. 2. The language matrix was hardcoded to [javascript, python] regardless of what the repo actually contains, so CodeQL was told to analyse a language with no source and aborted with 'no source code seen during build'. The matrix is now trimmed to the languages this repo actually has.
5 tasks
Two changes, both aimed at private-repo Actions spend: 1. CodeQL 'on: push' had no branch filter, so every push to a PR branch ran CodeQL twice - once for the push event and again for pull_request. Push is now limited to the default branch; PRs still get full analysis. Roughly halves CodeQL minutes. 2. Where a pure-Python matrix fanned out across ubuntu + macos + windows for every Python version, the full version sweep now runs on Linux (1x billing) with a single macOS and single Windows canary on the newest version. Cross-platform signal is kept; macOS jobs (10x billing) drop from 5 to 1. Co-authored-by: prabu-openclaw <abgodbout@gmail.com>
7 tasks done
Contributor
|
Closing: CI red; workflow permission fix superseded by later org CI/SDLC commits on main. Re-open only if repository-projects key still broken on main. |
2 of 4 tasks
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
Related issue or project item
Testing performed
Collaboration checklist