File tree Expand file tree Collapse file tree
extensions/ql-vscode/test/vscode-tests/cli-integration Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -130,6 +130,8 @@ describe("Use cli", () => {
130130 } ,
131131 ) ;
132132
133+ // Pin this pack because these tests exercise authentication, not registry compatibility.
134+ // Remove the pin once every supported CLI can download the latest tutorial pack.
133135 describe ( "github authentication" , ( ) => {
134136 itWithCodeQL ( ) (
135137 "should not use authentication if there are no credentials" ,
@@ -138,7 +140,7 @@ describe("Use cli", () => {
138140 . spyOn ( authentication , "getSession" )
139141 . mockResolvedValue ( undefined ) ;
140142
141- await cli . packDownload ( [ "codeql/tutorial" ] ) ;
143+ await cli . packDownload ( [ "codeql/tutorial@0.0.11 " ] ) ;
142144 expect ( getSession ) . toHaveBeenCalledTimes ( 1 ) ;
143145 expect ( getSession ) . toHaveBeenCalledWith (
144146 "github" ,
@@ -165,7 +167,7 @@ describe("Use cli", () => {
165167 scopes : [ "read:packages" ] ,
166168 } ) ;
167169
168- await cli . packDownload ( [ "codeql/tutorial" ] ) ;
170+ await cli . packDownload ( [ "codeql/tutorial@0.0.11 " ] ) ;
169171 expect ( getSession ) . toHaveBeenCalledTimes ( 2 ) ;
170172 expect ( getSession ) . toHaveBeenCalledWith (
171173 "github" ,
You can’t perform that action at this time.
0 commit comments