Skip to content

Configure CodeQL analysis workflow for JavaScript/TypeScript - #5959

Closed
Pamela J Richardson (Pjrich1313) wants to merge 2 commits into
microsoft:mainfrom
Pjrich1313:main
Closed

Pamela J Richardson (Pjrich1313) wants to merge 2 commits into
microsoft:mainfrom
Pjrich1313:main

Conversation

@Pjrich1313

Copy link
Copy Markdown

This workflow is set up to perform CodeQL analysis on the main branch for JavaScript and TypeScript, triggered by pushes and pull requests, as well as on a schedule.

Summary

Details

How it was tested

Impacted documentation

This workflow is set up to perform CodeQL analysis on the main branch for JavaScript and TypeScript, triggered by pushes and pull requests, as well as on a schedule.
Copilot AI balanced review requested due to automatic review settings August 24, 2026 09:35
@github-project-automation github-project-automation Bot moved this to Needs triage in Bug Triage Aug 24, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds CodeQL scanning for JavaScript and TypeScript.

Changes:

  • Runs analysis on main-branch pushes, pull requests, and weekly.
  • Configures CodeQL initialization and result publishing.
Suppressed comments (2)

.github/workflows/codeql.yml:68

  • Pin the CodeQL init action to an immutable commit. A mutable major tag can be retargeted, allowing upstream changes to run with security-events: write; this also differs from the SHA-pinning convention in .github/workflows/ci.yml:51 and .github/workflows/file-doc-tickets.yml:26.
      uses: github/codeql-action/init@v4

.github/workflows/codeql.yml:97

  • Pin the analyze action to the same immutable CodeQL release SHA as the init step. Leaving this on the mutable v4 tag exposes the write-capable workflow to upstream tag movement and is inconsistent with the repository's pinned-action convention.
      uses: github/codeql-action/analyze@v4

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

# your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages
steps:
- name: Checkout repository
uses: actions/checkout@v7
Comment on lines +35 to +39
# required to fetch internal or private CodeQL packs
packages: read

# only required for workflows in private repositories
actions: read

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTZm

@github-project-automation github-project-automation Bot moved this from Needs triage to Closed in Bug Triage Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

2 participants