Add apk to supported package managers
requested to merge 458295-listing-project-dependencies-with-apk-packager-results-in-unresolvedvalueerror into master
What does this MR do and why?
This MR adds apk
to the list of known package managers enum in GraphQL.
Related to #458295 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Make sure you have a working CI registry.
- Create a project with a
Dockerfile
and.gitlab-ci.yml
- Run the build process
- Use the GraphQL query below, it shouldn't error out
Dockerfile
FROM alpine:latest
RUN apk add --no-cache p11-kit=0.25.3-r0 libpng=1.6.40-r0 fontconfig=2.14.2-r4
.gitlab-ci.yml
include:
- template: Jobs/Build.gitlab-ci.yml
- template: Jobs/Container-Scanning.gitlab-ci.yml
container_scanning:
variables:
CS_DEFAULT_BRANCH_IMAGE: $CI_REGISTRY_IMAGE/$CI_DEFAULT_BRANCH:$CI_COMMIT_SHA
GraphQL
{
project(fullPath: "<path to project>") {
dependencies(after: "") {
pageInfo {
endCursor
startCursor
hasNextPage
}
nodes {
name
version
packager
location {
path
blobPath
}
licenses {
name
url
}
}
}
}
}
Edited by Michał Zając