MCPcopy Index your code
hub / github.com/nodejs/node / validateFile

Method validateFile

deps/npm/lib/commands/trust/gitlab.js:63–67  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

61 }
62
63 validateFile (file) {
64 if (file !== path.basename(file)) {
65 throw new Error('GitLab CI/CD pipeline file must be just a file not a path')
66 }
67 }
68
69 static optionsToBody (options) {
70 const { file, project, environment } = options

Callers 1

flagsToOptionsMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected