You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please find example script attached. This example takes in two known project ids and tries to add the target projectId to the allowlist of the source project. (obviously will require being manually replace in the code snippet)
import{Gitlab}from'@gitbeaker/rest';if(!process.env.GITLAB_PROJECT_ACCESS_TOKEN){throwError('GITLAB_PROJECT_ACCESS_TOKEN not set');}constapi=newGitlab({token: process.env.GITLAB_PROJECT_ACCESS_TOKEN,});exportconstmain=async()=>{try{awaitapi.ProjectJobTokenScopes.addToInboundAllowList("sourceProjectId","targetProjectId")}catch(e: any){console.log("req",e.cause.request)throwe}}main()
Description
Trying to call
ProjectJobTokenScopes.addToInbountAllowList
results in not found.Steps to reproduce
Please find example script attached. This example takes in two known project ids and tries to add the target projectId to the allowlist of the source project. (obviously will require being manually replace in the code snippet)
Expected behaviour
Should add the targetProjectId to the source project allow list. As outlined here:
https://docs.gitlab.com/ee/api/project_job_token_scopes.html#add-a-project-to-a-cicd-job-token-inbound-allowlist
Actual behaviour
404
Possible fixes
Looks like the implementation of the ProjectJobTokenScopes Resource is excluding
projects
from the path for example: hereshould become:
Checklist
The text was updated successfully, but these errors were encountered: