fix GitlabUrlReader to include private key header

Signed-off-by: Max Morton <mamorton@paloaltonetworks.com>
This commit is contained in:
Max Morton
2022-12-02 15:21:24 -08:00
parent 7c65d54a35
commit d5e1565745
@@ -311,6 +311,11 @@ export class GitlabUrlReader implements UrlReader {
`${
pathToProject.origin
}${relativePath}/api/v4/projects/${encodeURIComponent(project)}`,
{
headers: {
...getGitLabRequestOptions(this.integration.config).headers,
},
},
);
const data = await result.json();
if (!result.ok) {