MCPcopy
hub / github.com/firecow/gitlab-ci-local / validateIncludeLocal

Function validateIncludeLocal

src/parser-includes.ts:465–468  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

463}
464
465export function validateIncludeLocal (filePath: string) {
466 assert(!filePath.startsWith("./"), `\`${filePath}\` for include:local is invalid. Gitlab does not support relative path (ie. cannot start with \`./\`).`);
467 assert(!filePath.includes(".."), `\`${filePath}\` for include:local is invalid. Gitlab does not support directory traversal.`);
468}
469
470export function resolveSemanticVersionRange (range: string, gitTags: string[]) {
471 /** sorted list of tags thats compliant to semantic version where index 0 is the latest */

Callers 2

fetchTriggerIncludeMethod · 0.85
initMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected