1
1
name : " Export file baseline information"
2
2
description : " Tests that file baseline information is exported when the feature is enabled"
3
3
versions : ["nightly-latest"]
4
+ env :
5
+ CODEQL_ACTION_SUBLANGUAGE_FILE_COVERAGE : true
4
6
steps :
5
7
- uses : ./../action/init
6
8
id : init
7
9
with :
8
10
languages : javascript
9
11
tools : ${{ steps.prepare-test.outputs.tools-url }}
10
- env :
11
- CODEQL_FILE_BASELINE_INFORMATION : true
12
12
- uses : ./../action/.github/actions/setup-swift
13
13
with :
14
14
codeql-path : ${{ steps.init.outputs.codeql-path }}
18
18
- uses : ./../action/analyze
19
19
with :
20
20
output : " ${{ runner.temp }}/results"
21
- env :
22
- CODEQL_FILE_BASELINE_INFORMATION : true
23
21
- name : Upload SARIF
24
22
uses : actions/upload-artifact@v3
25
23
with :
@@ -30,13 +28,13 @@ steps:
30
28
shell : bash
31
29
run : |
32
30
cd "$RUNNER_TEMP/results"
33
- expected_baseline_languages="cpp cs go java js py rb "
31
+ expected_baseline_languages="c csharp go java kotlin javascript python ruby "
34
32
if [[ $RUNNER_OS != "Windows" ]]; then
35
33
expected_baseline_languages+=" swift"
36
34
fi
37
35
38
36
for lang in ${expected_baseline_languages}; do
39
- rule_name="${lang}/baseline/ expected-extracted-files"
37
+ rule_name="cli/ expected-extracted-files/${lang} "
40
38
found_notification=$(jq --arg rule_name "${rule_name}" '[.runs[0].tool.driver.notifications |
41
39
select(. != null) | flatten | .[].id] | any(. == $rule_name)' javascript.sarif)
42
40
if [[ "${found_notification}" != "true" ]]; then
0 commit comments