File tree Expand file tree Collapse file tree 3 files changed +19
-10
lines changed
CodeQLToolkit.Features/CodeQL/Commands/Targets
CodeQLToolkit.Shared/CodeQL Expand file tree Collapse file tree 3 files changed +19
-10
lines changed Original file line number Diff line number Diff line change 67
67
languages : ${{ matrix.language }}
68
68
queries : security-extended
69
69
source-root : integration-tests/cpp/src/ # Path containing the example application
70
- tools : ${{ env.QLT_CODEQL_HOME }}/../out/codeql-bundle.tar.gz
70
+ tools : ${{ env.QLT_CODEQL_BUNDLE_PATH }}
71
71
72
72
- name : Autobuild
73
73
uses : github/codeql-action/autobuild@v2
@@ -93,14 +93,13 @@ jobs:
93
93
${{ steps.analysis.outputs.sarif-output }}/*.sarif
94
94
if-no-files-found : error
95
95
96
- # - name: Upload Bundle Used
97
- # uses: actions/upload-artifact@v2
98
- # with:
99
- # name: codeql-bundle.tar.gz
100
- # path: |
101
- # ${{ env.QLT_CODEQL_HOME }}/../out/codeql-bundle.tar.gz
102
- # if-no-files-found: error
103
-
96
+ - name : Upload Bundle Used
97
+ uses : actions/upload-artifact@v2
98
+ with :
99
+ name : codeql-bundle.tar.gz
100
+ path : |
101
+ ${{ env.QLT_CODEQL_BUNDLE_PATH }}
102
+ if-no-files-found : error
104
103
105
104
- name : Validate SARIF Results
106
105
shell : bash
Original file line number Diff line number Diff line change @@ -58,13 +58,22 @@ public override void Run()
58
58
59
59
Environment . SetEnvironmentVariable ( "QLT_CODEQL_HOME" , installation . CodeQLHome ) ;
60
60
Environment . SetEnvironmentVariable ( "QLT_CODEQL_PATH" , installation . CodeQLToolBinary ) ;
61
+ if ( CustomBundles || QuickBundles )
62
+ {
63
+ Environment . SetEnvironmentVariable ( "QLT_CODEQL_BUNDLE_PATH" , installation . CustomBundleOutputBundle ) ;
64
+ }
61
65
62
66
if ( AutomationTypeHelper . AutomationTypeFromString ( AutomationTarget ) == AutomationType . ACTIONS )
63
67
{
64
68
if ( Environment . GetEnvironmentVariable ( "GITHUB_ENV" ) != null && File . Exists ( Environment . GetEnvironmentVariable ( "GITHUB_ENV" ) ) )
65
69
{
70
+
66
71
File . AppendAllText ( Environment . GetEnvironmentVariable ( "GITHUB_ENV" ) , $ "QLT_CODEQL_HOME={ installation . CodeQLHome } " + "\n " ) ;
67
72
File . AppendAllText ( Environment . GetEnvironmentVariable ( "GITHUB_ENV" ) , $ "QLT_CODEQL_PATH={ installation . CodeQLToolBinary } " + "\n " ) ;
73
+ if ( CustomBundles || QuickBundles )
74
+ {
75
+ File . AppendAllText ( Environment . GetEnvironmentVariable ( "GITHUB_ENV" ) , $ "QLT_CODEQL_BUNDLE_PATH={ installation . CustomBundleOutputBundle } " + "\n " ) ;
76
+ }
68
77
}
69
78
}
70
79
Original file line number Diff line number Diff line change @@ -47,9 +47,10 @@ For a bundle installation the mapping is as follows:
47
47
48
48
- ` CodeQLCLIBundle ` - The bundle downloaded from ` github/codeql-action/releases ` to base the bundle on.
49
49
50
- In all cases, at the end of the execution two environment variables are set:
50
+ In all cases, at the end of the execution two to three environment variables are set:
51
51
- ` QLT_CODEQL_PATH ` - The path to the CodeQL binary.
52
52
- ` QLT_CODEQL_HOME ` - The root installation of CodeQL
53
+ - ` QLT_CODEQL_BUNDLE_PATH ` - The path to the bundle created by QLT.
53
54
54
55
## Idents within the Installation Directory
55
56
You can’t perform that action at this time.
0 commit comments