-
Notifications
You must be signed in to change notification settings - Fork 333
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add private registry URLs as output to the start-proxy
Action
#2652
base: main
Are you sure you want to change the base?
Conversation
Copilot
AI
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 6 out of 7 changed files in this pull request and generated 1 comment.
Files not reviewed (1)
- pr-checks/.gitignore: Language not supported
Comments suppressed due to low confidence (1)
lib/start-proxy-action.js:155
- The variable name 'registry_urls' should be 'registryUrls' to follow camelCase naming convention.
const registry_urls = config.all_credentials
Tip: Turn on automatic Copilot reviews for this repository to get quick feedback on every pull request. Learn more
@@ -171,6 +171,11 @@ async function startProxy( | |||
core.setOutput("proxy_host", host); | |||
core.setOutput("proxy_port", port.toString()); | |||
core.setOutput("proxy_ca_certificate", config.ca.cert); | |||
|
|||
const registry_urls = config.all_credentials | |||
.filter((credential) => credential.url !== undefined) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The filter condition should use 'credential.url != null' instead of 'credential.url !== undefined' to properly filter out both 'undefined' and 'null' values.
.filter((credential) => credential.url !== undefined) | |
.filter((credential) => credential.url != null) |
Copilot is powered by AI, so mistakes are possible. Review output carefully before use.
Merge / deployment checklist