[scanner] fix: enable CodeQL static analysis workflow#6258
Conversation
Renames .github/workflows/codeql.yml.disabled to codeql.yml to restore automated SAST scanning for JavaScript/TypeScript code. This restores automated detection of XSS, injection, and path-traversal vulnerabilities that were invisible to CI while the workflow was disabled. Fixes #6257 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Scanner Bot <scanner@kubestellar.io>
✅ Deploy Preview for kubestellar-docs ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
There was a problem hiding this comment.
Pull request overview
Restores GitHub CodeQL code-scanning for the docs repository by adding back an enabled workflow intended to run on pushes/PRs to main and on a weekly schedule.
Changes:
- Add/enable a CodeQL workflow for JavaScript/TypeScript analysis.
- Configure workflow triggers for
push,pull_request, and a weekly cron schedule.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| permissions: | ||
| contents: read | ||
|
|
| @@ -0,0 +1,34 @@ | |||
| name: CodeQL Analysis | |||
| - name: Checkout repository | ||
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 |
Fix: A repo admin needs to disable the CodeQL default setup in Settings → Code security → Code scanning → CodeQL analysis before this advanced workflow can upload results. Once default setup is disabled, this PR's workflow will succeed on the next push. Alternatively, if the default setup already provides sufficient coverage, this PR may be unnecessary — the default setup is already running |
|
Closing — CodeQL default setup is already enabled on this repository, which provides the same static analysis coverage. The advanced workflow (
No action needed — code scanning is already active via default setup. |
Fixes #6257
Changes
Renamed
.github/workflows/codeql.yml.disabled→.github/workflows/codeql.ymlto restore automated static code analysis.Impact
Restores automated detection of:
sanitizeHtmlForMdxand other TypeScript/JavaScript codeCodeQL will now run:
main