Add actions to generate-code-scanning-query-lists.yml (#55011)
Co-authored-by: mc <42146119+mchammer01@users.noreply.github.com>
This commit is contained in:
2
.github/actions/install-cocofix/action.yml
vendored
2
.github/actions/install-cocofix/action.yml
vendored
@@ -18,4 +18,4 @@ runs:
|
||||
npm install --no-save \
|
||||
'--@github:registry=https://npm.pkg.github.com' \
|
||||
'--//npm.pkg.github.com/:_authToken=${TOKEN}' \
|
||||
@github/cocofix
|
||||
@github/cocofix codeql-ts
|
||||
|
||||
@@ -87,7 +87,7 @@ jobs:
|
||||
|
||||
- name: Build code scanning query list
|
||||
run: |
|
||||
for lang in "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "swift"; do
|
||||
for lang in "actions" "cpp" "csharp" "go" "java" "javascript" "python" "ruby" "swift"; do
|
||||
echo "Generating code scanning query list for $lang"
|
||||
npm run generate-code-scanning-query-list -- \
|
||||
--verbose \
|
||||
|
||||
@@ -55,8 +55,8 @@ import chalk from 'chalk'
|
||||
import { program } from 'commander'
|
||||
// We don't want to introduce a global dependency on @github/cocofix, so we install it by hand
|
||||
// as described above and suppress the import warning.
|
||||
import { getSupportedQueries } from '@github/cocofix/dist/querySuites.js' // eslint-disable-line import/no-extraneous-dependencies
|
||||
import { type Language } from '@github/cocofix/dist/codeql' // eslint-disable-line import/no-extraneous-dependencies
|
||||
import { getSupportedQueries } from '@github/cocofix/dist/querySuites.js' /* eslint-disable-line import/no-extraneous-dependencies, import/no-unresolved */
|
||||
import type { Language } from 'codeql-ts'
|
||||
|
||||
program
|
||||
.description('Generate a reusable Markdown for for a code scanning query language')
|
||||
|
||||
Reference in New Issue
Block a user