Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions lib/languages.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/languages.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 0 additions & 4 deletions lib/start-proxy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/start-proxy.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/languages.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
// All the languages supported by CodeQL
/**
* A CodeQL language.
*
* To facilitate adding new languages, this is _not_ an exhaustive list of
* languages supported by CodeQL.
*/
export enum Language {
actions = "actions",
csharp = "csharp",
cpp = "cpp",
go = "go",
Expand Down
6 changes: 1 addition & 5 deletions src/start-proxy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,14 @@ export type Credential = {
token?: string;
};

const LANGUAGE_TO_REGISTRY_TYPE: Record<Language, string> = {
const LANGUAGE_TO_REGISTRY_TYPE: Partial<Record<Language, string>> = {
java: "maven_repository",
csharp: "nuget_feed",
javascript: "npm_registry",
python: "python_index",
ruby: "rubygems_server",
rust: "cargo_registry",
go: "goproxy_server",
// We do not have an established proxy type for these languages, thus leaving empty.
actions: "",
cpp: "",
swift: "",
} as const;

// getCredentials returns registry credentials from action inputs.
Expand Down