Skip to content

Commit 5f33f01

Browse files
authored
Merge pull request #343 from Shegox/patch-1
Update GitHub Actions code example "with" syntax to map instead of array
2 parents d9f0ee9 + 6d536f9 commit 5f33f01

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

content/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ To add one or more queries, add a `with: queries:` entry within the `uses: githu
140140
``` yaml
141141
- uses: github/codeql-action/init@v1
142142
with:
143-
- queries: COMMA-SEPARATED LIST OF PATHS
143+
queries: COMMA-SEPARATED LIST OF PATHS
144144
```
145145

146146
You can also specify query suites in the value of `queries`. Query suites are collections of queries, usually grouped by purpose or language.
@@ -154,8 +154,8 @@ In the following example, the `+` symbol ensures that the specified additional q
154154
``` yaml
155155
- uses: github/codeql-action/init@v1
156156
with:
157-
- config-file: ./.github/codeql/codeql-config.yml
158-
- queries: +security-and-quality,octo-org/python-qlpack/show_ifs.ql@main
157+
config-file: ./.github/codeql/codeql-config.yml
158+
queries: +security-and-quality,octo-org/python-qlpack/show_ifs.ql@main
159159
```
160160

161161
### Using a custom configuration file

0 commit comments

Comments
 (0)