| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
There was a problem hiding this comment.
Warning
Extends status reports to include registry types derived from CODEQL_PROXY_URLS.
Changes:
| File | Description |
|---|---|
| src/status-report.ts | Adds registry-type extraction and reporting. |
| src/status-report.test.ts | Tests extraction and status-report integration. |
| src/start-proxy.ts | Moves registry_types into the shared report type. |
| lib/entry-points.js | Generated, policy-excluded artifact. |
Sorry, something went wrong.
|
Is it intentional that we omit host registries in the the status reports? I believe CODEQL_PROXY_URLS drops these, but the current status report sent by start-proxy includes them. |
Sorry, something went wrong.
|
@sam-robson Yes, we intentionally do not include hostnames in the telemetry. The hostnames are filtered out for the existing start-proxy telemetry by proxyConfig.all_credentials.map((c) => c.type). |
Sorry, something went wrong.
I meant the registry types for host-only credentials, not the hostname values themselves. proxyConfig.all_credentials.map((c) => c.type) includes the type of every credential, including those identified only by host. By contrast, proxy_urls first filters with credential.url !== undefined, so later status reports omit the types of host-only credentials. |
Sorry, something went wrong.
| validate, | ||
| check: defaultCheck(validate), | ||
| required, | ||
| required: true, |
There was a problem hiding this comment.
why this change?
Sorry, something went wrong.
There was a problem hiding this comment.
See the relevant commit message. The existing code inferred an unhelpful type for the results of this function, since we require the value of required in the type. I could have made a different change here to still have the required parameter, but that would have complicated the function more than necessary considering all consumers create validators for required properties.
Sorry, something went wrong.
There was a problem hiding this comment.
just a heads up on a change that I don't understand,but otherwise lgtm
Sorry, something went wrong.
@sam-robson Ah, thanks for clarifying and sorry I misunderstood your comment. AFAIK, the host field isn't used anymore by the backend and every credential should be one with a url key anyway, so this shouldn't be a meaningful distinction in practice. We could probably look at removing the host field, but will need to check whether there isn't something that depends on it somewhere. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Currently, the registry_types field in status reports is only populated by the start-proxy action. However, other steps such as init and analyze have access to the registry types via the CODEQL_PROXY_URLS environment variable. It is useful for us to be able to see at a glance when init or analyze steps benefit from configured registries.
This PR updates the createStatusReportBase function to try and parse the contents of CODEQL_PROXY_URLS when it is set to include the unique registry types in the status report when possible.
Risk assessment
For internal use only. Please select the risk level of this change:
Which use cases does this change impact?
Workflow types:
Products:
Environments:
How did/will you validate this change?
If something goes wrong after this change is released, what are the mitigation and rollback strategies?
How will you know if something goes wrong after this change is released?
Are there any special considerations for merging or releasing this change?
Merge / deployment checklist