Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[EngSys] Enable CodeQL for JavaScript and Actions #33060

Merged
merged 9 commits into from
Mar 6, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# For most projects, this workflow file will not need changing; you simply need

Check failure on line 1 in .github/workflows/codeql.yml

View workflow job for this annotation

GitHub Actions / Protected Files

File '.github/workflows/codeql.yml' should only be updated by the Azure SDK team. If intentional, the PR may be merged by the Azure SDK team via bypassing the branch protections.
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
Expand Down Expand Up @@ -47,12 +47,17 @@
config: |
paths:
- .github
sparse-checkout: |
.github
Copy link
Member

Choose a reason for hiding this comment

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

Is this to scope to only the github folder? Do we not want any other validation?

If we do want to scope it might be worth mentioning that here in a comment.

- language: javascript-typescript
build-mode: none
config: |
paths:
- .github
- eng/tools
sparse-checkout: |
.github
eng/tools

# CodeQL supports the following values keywords for 'language': 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'
# Use `c-cpp` to analyze code written in C, C++ or both
Expand All @@ -65,6 +70,9 @@
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
sparse-checkout: |
${{ matrix.sparse-checkout }}

# Add any setup steps before running the `github/codeql-action/init` action.
# This includes steps like installing compilers or runtimes (`actions/setup-node`
Expand All @@ -78,7 +86,8 @@
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
config: ${{ matrix.config }}
config: |
${{ matrix.config }}
# If you wish to specify custom queries, you can do so here or in a config file.
# By default, queries listed here will override any specified in a config file.
# Prefix the list here with "+" to use these queries and those in the config file.
Expand Down
Loading