Add CodeQL.yml caller workflow + template#138
Merged
Conversation
Calls the new path-aware CodeQL Actions analysis reusable from ITensorActions v2.1.0. Skips analysis on PRs that don't touch .github/workflows (reports success), runs full analysis on workflow-touching PRs, and reports `skipped` on fork PRs that touch workflow files (so auto-merge can't fire and a maintainer must intervene). Replaces the consumer-side CodeQL default-setup that the 2026-05-04 audit ruleset sweep made required. Default-setup deliberately skips fork PRs from external contributors as a security measure, leaving the required `Analyze (actions)` check unreachable on those PRs. The new caller-driven workflow reports a status check that's reachable across PR types, with the right behavior matrix per fork/workflow-touch combination. Resulting status-check name: `CodeQL / Analyze (actions)`. Branch rulesets need to require this string instead of the default-setup `Analyze (actions)` once consumers swap over. Both copies updated per the ITensorPkgSkeleton convention: .github/workflows/CodeQL.yml is the actual workflow this skeleton repo uses, and template/.github/workflows/CodeQL.yml.template is what MassApplyPatch installs into consumer repos during sweeps. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #138 +/- ##
=======================================
Coverage 87.34% 87.34%
=======================================
Files 1 1
Lines 158 158
=======================================
Hits 138 138
Misses 20 20
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Patch bump for the CodeQL.yml caller workflow + template addition. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool. What Enabling Code Scanning Means:
For more information about GitHub Code Scanning, check out the documentation. |
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
Add the
CodeQL.ymlcaller workflow + matching template that targets the new path-aware CodeQL Actions analysis reusable inITensor/ITensorActions(shipped in v2.1.0). Replaces consumer-side CodeQL default-setup, which doesn't fire on fork PRs from external contributors and leaves the requiredAnalyze (actions)check unreachable on those PRs.The new caller reports a status check named
CodeQL / Analyze (actions). Theanalyzejob runs full CodeQL on PRs that touch.github/workflows/**, reports success-without-running on PRs that don't, and reportsskippedon fork PRs that touch workflow files (so auto-merge can't fire and a maintainer must consciously intervene).Both copies updated per ITensorPkgSkeleton convention:
.github/workflows/CodeQL.ymlis the actual workflow this skeleton repo uses, andtemplate/.github/workflows/CodeQL.yml.templateis what MassApplyPatch installs into consumer repos during sweeps.Tracked in full at
Projects/Ecosystem/codeql_advanced_setup/in ITensorDevelopmentPlans. Followup steps after this lands: ITensorOrgPatches sweep patch, ecosystem rollout (disabling default-setup CodeQL on each repo, installing the caller), and ruleset-context rename across all 38 repos.