-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[bbclass] Add support for new backend features
* Add ability to override the manifest and report name. This adds a new configuration variable 'VIGILES_MANIFEST_NAME' (default: the value of 'IMAGE_BASENAME') that is used to set the file names for the Vigiles Manifest and CVE Check Report. This can be set to a custom value in local.conf, e.g.: VIGILES_MANIFEST_NAME = "Custom-Build-Name" .. which would result in the files: ./vigiles ├── Custom-Build-Name ├── Custom-Build-Name-cve.json -> Custom-Build-Name/Custom-Build-Name-2020-11-25_20.28.09-cve.json └── Custom-Build-Name-report.txt -> Custom-Build-Name/Custom-Build-Name-2020-11-25_20.28.09-report.txt * Allow environment overrides of LinuxLink credentials This adds support for forwarding Vigiles / LinuxLink credentials that have been overriden in the user's environment to the CheckCVEs script. No change in behavior is required by users, but they may now optionally set VIGILES_KEY_FILE and VIGILES_DASHBOARD_CONFIG in their shell environment to override the values that are set in local.conf for a build. This is intended to allow developers to share a common local.conf for a board, with default credentials for e.g. an official build server, but use their own private/local credentials without having to manually modify the board config for each build. The variables may be set either before OR after the BitBake build environment have been set (i.e. running '. sources/poky/oe-init-build-env'). In addition -- for testing only -- this also adds the ability to override the location of the LinuxLink server from the environment. * Add support to only upload the Manifest without waiting for CVE Report This adds a new boolean variable VIGILES_UPLOAD_ONLY that can be set to e.g. '1' or 'True' to enable this behavior. This can speed up build times and ease reporting of automated bulk builds. Instead of a text report and a link to the online report, a link to the Vigiles Dashboard Product Workspace (as specified with VIGILES_DASHBOARD_CONFIG) will be displayed. Note that the CVE Check will still be run in the background and an online report should be immediately available via the displayed link.
- Loading branch information
1 parent
55c1472
commit 6d2441d
Showing
3 changed files
with
95 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters