Skip to content

Commit 9d1f847

Browse files
committed
copy edits to step 1
1 parent 3022461 commit 9d1f847

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/steps/1-codeql-language-matrix.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,23 @@ CodeQL language matrices allow you to configure your CodeQL workflows with a lan
99
### Importance of using languages matrices with code scanning
1010

1111
1. **Simplicity**: Using a language matrix with CodeQL simplifies your workflow by allowing you to manage multiple languages in a single workflow file. This eliminates the need for separate workflows for each language, making your code scanning process more streamlined and manageable.
12-
2. **Flexibility**: A language matrix provides flexibility as it allows you to easily add or remove languages from your workflow. This means you can quickly adapt your code scanning process to changes in your project's language usage.
12+
2. **Flexibility**: A language matrix provides flexibility, as it allows you to easily add or remove languages from your workflow. This means you can quickly adapt your code scanning process to changes in your project's language usage.
1313
3. **Consistency**: By using a language matrix, you ensure consistent code scanning across all languages used in your project. This helps maintain the quality and security of your codebase, regardless of the language it's written in.
1414

1515
Remember, a well-configured CodeQL setup is key to maintaining a secure and reliable codebase.
1616

1717
### :keyboard: Activity: Configure your `codeql.yml` file to use a language matrix
1818

19-
1. Navigate to the `Code` tab and locate the `.github/workflows` folder.
20-
1. Add the following content to the `codeql.yml` file before the steps section:
19+
1. In the `Code` tab, locate the `.github/workflows` folder.
20+
1. In the `codeql.yml` file, above the `steps` section, add the following:
2121
```yaml
2222
strategy:
2323
fail-fast: false
2424
matrix:
2525
language: [ 'go', 'java-kotlin', 'javascript-typescript', 'python' ]
2626
# CodeQL supports [ 'c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift' ]
27-
# Use only 'java-kotlin' to analyze code written in Java, Kotlin or both
28-
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript or both
27+
# Use only 'java-kotlin' to analyze code written in Java, Kotlin, or both
28+
# Use only 'javascript-typescript' to analyze code written in JavaScript, TypeScript, or both
2929
# Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support
3030

3131
```
@@ -35,7 +35,7 @@ Remember, a well-configured CodeQL setup is key to maintaining a secure and reli
3535
with:
3636
languages: ${{ matrix.language }}
3737
```
38-
1. Finally we need to add the language matrix to the CodeQL analyze action. Add the following to the CodeQL analyze action:
38+
1. Finally, we need to add the language matrix to the CodeQL analyze action. Add the following to the CodeQL analyze action:
3939
```yaml
4040
with:
4141
category: ${{ matrix.language }}

0 commit comments

Comments
 (0)