Add Grype Habitat package scan workflow with build and install modes#34
Open
Add Grype Habitat package scan workflow with build and install modes#34
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
This pull request adds support for scanning Habitat packages using Grype as part of the CI workflow. The changes allow for flexible configuration of scan parameters, including package origin, name, version, release, channel, and target platforms. This enables automated vulnerability scanning of Habitat packages either by building from source or downloading from Builder.
New Habitat Grype scan inputs:
.github/workflows/ci-main-pull-request.ymlfor configuring Habitat package Grype scans, such asperform-grype-hab-scan,grype-hab-build-package,grype-hab-origin,grype-hab-package,grype-hab-version,grype-hab-release,grype-hab-channel, and platform-specific scan options.Job and workflow integration:
run-grype-hab-package-scanthat runs the Grype scan for Habitat packages, using the new inputs and referencing the shared workflow inchef/common-github-actions.Related Issue
Types of changes
Checklist:
Gemfile.lockhas changed, I have used--conservativeto do it and included the full output in the Description above.