Add policy for License Compliance Dogfooding Trial
Based on GraphQL API:
query {
project(fullPath: "gitlab-org/gl-security/license-compliance-dogfooding-trial-security-policy-project") {
securityPolicyProjectLinkedNamespaces {
nodes {
id
name
fullPath
}
}
securityPolicyProjectLinkedProjects {
count
nodes {
id
name
fullPath
}
}
}
}
the policy defined in https://gitlab.com/gitlab-org/gl-security/license-compliance-dogfooding-trial/-/security/policies/License+Approval+Policy+%2528LACA%2529/edit?type=approval_policy is used for 5 projects:
{
"data": {
"project": {
"securityPolicyProjectLinkedNamespaces": {
"nodes": []
},
"securityPolicyProjectLinkedProjects": {
"count": 5,
"nodes": [
{
"id": "gid://gitlab/Project/51293700",
"name": "license-compliance-dogfooding-test",
"fullPath": "gitlab-org/govern/security-policies/license-compliance-dogfooding-test"
},
{
"id": "gid://gitlab/Project/51123167",
"name": "License Compliance Dogfooding Trial",
"fullPath": "gitlab-org/gl-security/license-compliance-dogfooding-trial"
},
{
"id": "gid://gitlab/Project/21351796",
"name": "browserker",
"fullPath": "gitlab-org/security-products/analyzers/browserker"
},
{
"id": "gid://gitlab/Project/19861191",
"name": "GitLab Dangerfiles",
"fullPath": "gitlab-org/ruby/gems/gitlab-dangerfiles"
},
{
"id": "gid://gitlab/Project/18449783",
"name": "dast",
"fullPath": "gitlab-org/security-products/analyzers/dast"
}
]
}
}
}
}
In scope of this MR we want to move it out for that project, scope to selected projects and enable the policy.
Edited by Alan (Maciej) Paruszewski