Generic BUILD_ARGS for analyzer-build
The gitlab-advanced-sast
analyzer requires some credentials during the build.
We previously added GL_TOKEN_SCANNER_READ_API
in order to pass a token for downloading the scanner from a private project.
As part of https://gitlab.com/gitlab-org/security-products/analyzers/gitlab-advanced-sast/-/merge_requests/9+s, we needed to add a second token for downloading the authorize
private package.
We want to avoid polluting the analyzer-build
script with additional parameters that are irrelevant for most analyzers.
This MR is implementing a generic way for passing custom build args through an optional environment variable named BUILD_ARGS