Repository navigation
Configure CodeQL analysis workflow for JavaScript/TypeScript - #5959
Closed
Pamela J Richardson (Pjrich1313) wants to merge 2 commits into
Closed
Pamela J Richardson (Pjrich1313) wants to merge 2 commits into
Pamela J Richardson (Pjrich1313) wants to merge 2 commits into
Conversation
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.
Contributor
There was a problem hiding this comment.
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:51and.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
v4tag 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 |
Pamela J Richardson (Pjrich1313)
left a comment
Author
There was a problem hiding this comment.
LGTZm
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.
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