Test Multi-arch images #41
This file contains hidden or 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
| name: Test Multi-arch images | |
| on: | |
| schedule: | |
| - cron: '0 */6 * * *' # runs every 6 hours | |
| push: | |
| branches: # | |
| - '*' | |
| permissions: | |
| contents: read | |
| id-token: write | |
| jobs: | |
| test_multi_arch: | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: plugin-development | |
| strategy: | |
| matrix: | |
| platform: | |
| - "linux/386" | |
| - "linux/amd64" | |
| - "linux/arm/v5" | |
| - "linux/arm/v7" | |
| - "linux/arm64/v8" | |
| - "linux/ppc64le" | |
| - "linux/riscv64" | |
| - "linux/s390x" | |
| steps: | |
| - name: Checkout this repository | |
| uses: actions/checkout@v4 | |
| - name: Configure AWS credentials | |
| uses: aws-actions/configure-aws-credentials@v4 | |
| with: | |
| aws-region: ${{ secrets.AWS_REGION }} | |
| aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |
| aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |
| role-to-assume: ${{ secrets.AWS_IAM_ROLE }} | |
| - name: Test multi-arch image - ${{ matrix.platform }} | |
| id: inspector | |
| uses: aws-actions/[email protected] | |
| with: | |
| artifact_type: 'container' | |
| artifact_path: 'debian:trixie' | |
| platform: ${{ matrix.platform }} | |
| display_vulnerability_findings: "enabled" | |
| sbomgen_version: "latest" | |
| - name: Demonstrate SBOM Output (JSON) | |
| run: cat ${{ steps.inspector.outputs.artifact_sbom }} | |
| - name: Display scan results | |
| run: cat ${{ steps.inspector.outputs.inspector_scan_results }} | |
| - name: Validate multi-arch - ${{ matrix.platform }} | |
| run: python3 validator/validate_multi_platform_image_support.py --platform "${{ matrix.platform }}" --sbom "${{ steps.inspector.outputs.artifact_sbom }}" | |