How-to guide
Record a release
Record the package list of each build that you ship, so that the portal checks it against each new advisory and can export its VEX file.
Record a release #
A release is the list of packages of a build that you ship. The portal keeps it, checks it against each new advisory, and can export it as a VEX file. Record it from the job that builds the release:
tuxcarectl sca --release "$CI_COMMIT_TAG" # GitLab
tuxcarectl sca --release "$GITHUB_REF_NAME" # GitHub, on a tag push
tuxcarectl sca --release "$TAG_NAME" # Jenkins, with tag discovery on
- Scan the same commit and the same lockfile that you ship.
- An empty name stops the job with exit code 2. So a tag variable that is not set cannot make a release with no name.
- A release does not change. The same name from another commit stops the job with exit code 2. With CLI 0.1.100 or later, after a complete read of the findings, a finding that fails a gate (
--fail-on, or a malicious package) is exit code 1 instead, and the job output still says that the release is not recorded and why.--force-releasereplaces the release, and the portal records the replacement. --product-release "Acme 3.2"also adds the release to a product release. The repository must be in exactly one product, else the job stops with exit code 2. With CLI 0.1.100 or later, after a complete read of the findings, a finding that fails a gate is exit code 1 instead, and the job output says that the release is not recorded and why. The same holds for each other refusal of the release call. A signal, the end of the--timeoutlimit,--fix, or a toolchain that did not resolve keeps the exit of the release call.
With the GitHub action, pass the name in args, for example args: --release ${{ github.ref_name }}. The action gives args to the CLI as a list of words, with no shell. Use the action of release 0.1.19 or later.
Next: Send the results to other tools