Repository navigation
Conversation
9b89ede to
6a73c5c
Compare
|
The import check still fails with a generic error after flattening to one commit and removing the new file. Could a maintainer retry the import or check the internal log? |
6a73c5c to
5df581e
Compare
|
The change now only modifies existing files, with a single commit on current master. The import check has moved from error to pending: waiting for internal safe review approval. |
|
The import check has been pending internal safe review since October 22. Is there anything you need from me to move it forward? |
Match allowed integrate prefixes on URL boundaries instead of raw string prefixes. Reject empty prefixes and enforce scheme, host, port and path boundaries.
|
Rebased onto current master so the branch is up to date. Commit: $h. The import check may need a retry after the force-push. |
5df581e to
2fcede9
Compare
|
The public import succeeded at 18:37:31, but \eedback/copybara\ has failed repeatedly. The latest status at 19:05:08 says \Google internal checks FAILED\ for the internal run created at 18:59:20 and points to \cl/1008190291. The public check gives no further detail. Could a maintainer check the internal presubmit log or let me know what failed? The branch is rebased on current \master\ and contains one commit. |
Summary
Fixes #358.
allowed_ref_prefixespreviously usedString.startsWith, sohttps://github.comalso allowedhttps://github.com.evil.example,https://github.com/googleallowedhttps://github.com/google-evil, and an empty prefix allowed every URL.This change parses the integrate URL and each allowed prefix as URIs and matches on URL boundaries instead of raw string prefixes.
Changes
IntegrateUrlPrefixes, a small helper that:/, or the next character in the URL path is/.IntegrateLabel.genericGitRevisionandGitHubPrIntegrateLabel.maybeParse.allowed_ref_prefixeswhen the Starlarkgit.integrate()config is evaluated, reporting failures asEvalException. Simple URL prefixes continue to work.Tests
Bazel is not installed in my environment, so the Bazel test suite was not run locally. A best-effort
javacinvocation could not resolve project dependencies because there is no Bazel dependency cache available, so it did not provide a meaningful compile check. No test results are claimed.CI should run:
Fixes #358