GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Filter registry credentials by language by marcogario · Pull Request #2680 · github/codeql-action Conversation
|
| const KEY_EXPIRY_YEARS = 2; | ||
|
|
||
| const LANGUAGE_TO_REGISTRY_TYPE = { | ||
| "java-kotlin": "maven_repository", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Should you add kotlin as a standalone language?
Also there is languages.ts, which is where we've traditionally added language-specific logic. I think I'd prefer to move this declaration to that file.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I've pushed a commit where this logic better integrates with languages.ts, by reusing the Language type defined there.
I am 50/50 on whether we should move this map there. The main reason against doing so is that this information is really only useful for the proxy action and even the names of the registry types are fairly arbitrary and dependent on the specifics of the proxy binary. WDYT?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I'm fine if the logic doesn't go into language.ts.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
f33e08c to
529f92f
Compare
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
529f92f to
31d11b1
Compare
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I have a suggestion, but it is purely stylistic and non-blocking.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| actions: "", | ||
| cpp: "", | ||
| go: "", | ||
| swift: "", |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
nit:
| actions: "", | |
| cpp: "", | |
| go: "", | |
| swift: "", | |
| actions: undefined, | |
| cpp: undefined, | |
| go: undefined, | |
| swift: undefined, |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| const registryTypeForLanguage = language | ||
| ? LANGUAGE_TO_REGISTRY_TYPE[language] | ||
| : undefined; |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
nit: If you apply the suggestion above, then this becomes simpler:
| const registryTypeForLanguage = language | |
| ? LANGUAGE_TO_REGISTRY_TYPE[language] | |
| : undefined; | |
| const registryTypeForLanguage = LANGUAGE_TO_REGISTRY_TYPE[language]; |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
I still need the check on language itself, though.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.