File tree 12 files changed +85
-5
lines changed
ql/integration-tests/filters-default
12 files changed +85
-5
lines changed Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if (($null -ne $env:LGTM_INDEX_INCLUDE) -or ($null -ne $env:LGTM_INDEX_EXCLUDE)
21
21
22
22
# Find the JavaScript extractor directory via `codeql resolve extractor`.
23
23
$CodeQL = Join-Path $env: CODEQL_DIST ' codeql.exe'
24
- $env: CODEQL_EXTRACTOR_JAVASCRIPT_ROOT = & $CodeQL resolve extractor -- language javascript
24
+ $env: CODEQL_EXTRACTOR_JAVASCRIPT_ROOT = & " $CodeQL " resolve extractor -- language javascript
25
25
if ($LASTEXITCODE -ne 0 ) {
26
26
throw ' Failed to resolve JavaScript extractor.'
27
27
}
@@ -40,7 +40,7 @@ $env:CODEQL_EXTRACTOR_JAVASCRIPT_SOURCE_ARCHIVE_DIR = $env:CODEQL_EXTRACTOR_ACTI
40
40
$env: CODEQL_EXTRACTOR_JAVASCRIPT_TRAP_DIR = $env: CODEQL_EXTRACTOR_ACTIONS_TRAP_DIR
41
41
$env: CODEQL_EXTRACTOR_JAVASCRIPT_WIP_DATABASE = $env: CODEQL_EXTRACTOR_ACTIONS_WIP_DATABASE
42
42
43
- & $JavaScriptAutoBuild
43
+ & " $JavaScriptAutoBuild "
44
44
if ($LASTEXITCODE -ne 0 ) {
45
45
throw " JavaScript autobuilder failed."
46
46
}
Original file line number Diff line number Diff line change 1
1
@ echo off
2
2
rem All of the work is done in the PowerShell script
3
- powershell.exe %~dp0 autobuild-impl.ps1
3
+ powershell.exe " %~dp0 autobuild-impl.ps1"
Original file line number Diff line number Diff line change 26
26
fi
27
27
28
28
# Find the JavaScript extractor directory via `codeql resolve extractor`.
29
- CODEQL_EXTRACTOR_JAVASCRIPT_ROOT=" $( $ CODEQL_DIST /codeql resolve extractor --language javascript) "
29
+ CODEQL_EXTRACTOR_JAVASCRIPT_ROOT=" $( " ${ CODEQL_DIST} /codeql" resolve extractor --language javascript) "
30
30
export CODEQL_EXTRACTOR_JAVASCRIPT_ROOT
31
31
32
32
echo " Found JavaScript extractor at '${CODEQL_EXTRACTOR_JAVASCRIPT_ROOT} '."
@@ -42,4 +42,4 @@ env CODEQL_EXTRACTOR_JAVASCRIPT_DIAGNOSTIC_DIR="${CODEQL_EXTRACTOR_ACTIONS_DIAGN
42
42
CODEQL_EXTRACTOR_JAVASCRIPT_SOURCE_ARCHIVE_DIR=" ${CODEQL_EXTRACTOR_ACTIONS_SOURCE_ARCHIVE_DIR} " \
43
43
CODEQL_EXTRACTOR_JAVASCRIPT_TRAP_DIR=" ${CODEQL_EXTRACTOR_ACTIONS_TRAP_DIR} " \
44
44
CODEQL_EXTRACTOR_JAVASCRIPT_WIP_DATABASE=" ${CODEQL_EXTRACTOR_ACTIONS_WIP_DATABASE} " \
45
- ${JAVASCRIPT_AUTO_BUILD}
45
+ " ${JAVASCRIPT_AUTO_BUILD} "
Original file line number Diff line number Diff line change
1
+ | src/.github/action.yaml:1:1:11:32 | name: ' ... action' |
2
+ | src/.github/actions/action-name/action.yml:1:1:11:32 | name: ' ... action' |
3
+ | src/.github/workflows/workflow.yml:1:1:12:33 | name: A workflow |
4
+ | src/action.yml:1:1:11:32 | name: ' ... action' |
Original file line number Diff line number Diff line change
1
+ import actions
2
+
3
+ from AstNode n
4
+ where n instanceof Workflow or n instanceof CompositeAction
5
+ select n
Original file line number Diff line number Diff line change
1
+ name : ' A composite action'
2
+ description : ' Do something'
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - name : Print
7
+ run : echo "Hello world"
8
+ shell : bash
9
+
10
+ - name : Checkout
11
+ uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ name : ' A composite action'
2
+ description : ' Do something'
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - name : Print
7
+ run : echo "Hello world"
8
+ shell : bash
9
+
10
+ - name : Checkout
11
+ uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ name : An unreachable workflow
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+
7
+ jobs :
8
+ job :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout code
12
+ uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ name : A workflow
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+
7
+ jobs :
8
+ job :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout code
12
+ uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ name : ' A composite action'
2
+ description : ' Do something'
3
+ runs :
4
+ using : " composite"
5
+ steps :
6
+ - name : Print
7
+ run : echo "Hello world"
8
+ shell : bash
9
+
10
+ - name : Checkout
11
+ uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ name : An unreachable workflow
2
+ on :
3
+ push :
4
+ branches :
5
+ - main
6
+
7
+ jobs :
8
+ job :
9
+ runs-on : ubuntu-latest
10
+ steps :
11
+ - name : Checkout code
12
+ uses : actions/checkout@v4
Original file line number Diff line number Diff line change
1
+ def test (codeql , actions ):
2
+ codeql .database .create (source_root = "src" )
You can’t perform that action at this time.
0 commit comments