mirror of
https://github.com/github/codeql.git
synced 2025-12-24 20:56:33 +01:00
This script can be used to go over `codeql test run` expected/actual log output from actions CI checks for a PR, and apply patches locally to make the tests pass. Designed for use by GitHub employees, since it needs access to internal CI runs. Just run this tool while the branch for the PR is checked out! You need the `gh` cli tool installed and authenticated. Example can be seen in https://github.com/github/codeql/pull/12950
44 lines
1.9 KiB
JSON
44 lines
1.9 KiB
JSON
{
|
|
// To run a task, select the `Terminal | Run Task...` menu option, and then select the task from
|
|
// the list in the dropdown, or invoke the `Tasks: Run Task` command from the command palette/
|
|
// To bind a keyboard shortcut to invoke a task, see https://code.visualstudio.com/docs/editor/tasks#_binding-keyboard-shortcuts-to-tasks.
|
|
// See https://go.microsoft.com/fwlink/?LinkId=733558
|
|
// for the documentation about the tasks.json format
|
|
"version": "2.0.0",
|
|
"tasks": [
|
|
{
|
|
"label": "Sync Identical Files",
|
|
"type": "process",
|
|
// Non-Windows OS will usually have Python 3 already installed at /usr/bin/python3.
|
|
"command": "python3",
|
|
"args": [
|
|
"config/sync-files.py",
|
|
"--latest"
|
|
],
|
|
"group": "build",
|
|
"windows": {
|
|
// On Windows, use whatever Python interpreter is configured for this workspace. The default is
|
|
// just `python`, so if Python is already on the path, this will find it.
|
|
"command": "${config:python.pythonPath}",
|
|
},
|
|
"problemMatcher": []
|
|
},
|
|
{
|
|
"label": "Accept .expected changes from CI",
|
|
"type": "process",
|
|
// Non-Windows OS will usually have Python 3 already installed at /usr/bin/python3.
|
|
"command": "python3",
|
|
"args": [
|
|
"misc/scripts/accept-expected-changes-from-ci.py"
|
|
],
|
|
"group": "build",
|
|
"windows": {
|
|
// On Windows, use whatever Python interpreter is configured for this workspace. The default is
|
|
// just `python`, so if Python is already on the path, this will find it.
|
|
"command": "${config:python.pythonPath}",
|
|
},
|
|
"problemMatcher": []
|
|
}
|
|
]
|
|
}
|