Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add platform argument for container image scans #102

Merged
merged 9 commits into from
Nov 26, 2024

Conversation

bluesentinelsec
Copy link
Contributor

@bluesentinelsec bluesentinelsec commented Oct 22, 2024

This PR adds a new argument for container image scans: platform.

Platform is used to indicate the OS and CPU architecture of the image you wish to scan.

Platform must be specified in the form, os/cpu/variant, where variant is optional but os/cpu are required.
For example: linux/amd64, linux/arm64/v8.

Windows container images are not supported at this time.

This workflow requires inspector-sbomgen versions greater than 1.5.1.

Example workflow snippet:

      - name: Test container scan
        id: inspector
        uses: aws-actions/vulnerability-scan-github-action-for-amazon-inspector@v1
        with:
          artifact_type: 'container'
          artifact_path: 'ubuntu:14.04'
          platform: "linux/arm64"
          display_vulnerability_findings: "enabled"
          sbomgen_version: "latest"

This PR addresses issue #101

@bluesentinelsec bluesentinelsec changed the title Add platform argument for container image scans [WIP] Add platform argument for container image scans Oct 22, 2024
@bluesentinelsec bluesentinelsec changed the title [WIP] Add platform argument for container image scans Add platform argument for container image scans Nov 15, 2024
@bluesentinelsec bluesentinelsec merged commit 8c2d4d7 into main Nov 26, 2024
13 checks passed
@bluesentinelsec bluesentinelsec deleted the multi_arch_support branch November 26, 2024 18:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants