Skip to content

Commit

Permalink
MLPAB-2403 - upload sboms (#1399)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewpearce-digital authored Aug 6, 2024
1 parent 2027cda commit 0b4cfa7
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 178 deletions.
54 changes: 0 additions & 54 deletions .github/workflows/dispatch_export_sbom.yml

This file was deleted.

19 changes: 19 additions & 0 deletions .github/workflows/docker_job.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,19 @@ jobs:
matrix:
include:
- ecr_repository: modernising-lpa/app
name: app
path: ./docker/mlpa/Dockerfile
platforms: linux/amd64
- ecr_repository: modernising-lpa/create-s3-batch-replication-job
name: create-s3-batch-replication-job
path: ./lambda/create_s3_replication_job/Dockerfile
platforms: linux/amd64
- ecr_repository: modernising-lpa/event-received
name: event-received
path: ./docker/event-received/Dockerfile
platforms: linux/amd64
- ecr_repository: modernising-lpa/mock-pay
name: mock-pay
path: ./docker/mock-pay/Dockerfile
platforms: linux/amd64

Expand Down Expand Up @@ -107,6 +111,21 @@ jobs:
if: always()
with:
sarif_file: 'trivy-results.sarif'
- name: Trivy Image SBOM Generator for ${{ matrix.ecr_repository }} and submit results to Dependency Graph
id: trivy_sbom
uses: aquasecurity/[email protected]
with:
scan-type: 'image'
image-ref: ${{ matrix.ecr_repository }}:${{ inputs.tag }}
format: 'github'
output: '${{ matrix.name }}-${{ inputs.tag }}.sbom.json'
github-pat: ${{ secrets.GITHUB_TOKEN }}
- name: Upload trivy report as a Github artifact
uses: actions/upload-artifact@v4
with:
name: trivy-sbom-report-${{ matrix.name }}-${{ inputs.tag }}
path: '${{ github.workspace }}/${{ matrix.name }}-${{ inputs.tag }}.sbom.json'
retention-days: 20 # 90 is the default

- name: Push ${{ matrix.ecr_repository }} Image to ECR for PR
if: ${{ github.workflow != 'Path To Live' }}
Expand Down
34 changes: 0 additions & 34 deletions scripts/sbom_exporter/README.md

This file was deleted.

50 changes: 0 additions & 50 deletions scripts/sbom_exporter/export_ecr_image_sbom.sh

This file was deleted.

14 changes: 0 additions & 14 deletions scripts/sbom_exporter/mock_onelogin_filter_criteria.json

This file was deleted.

26 changes: 0 additions & 26 deletions scripts/sbom_exporter/modernising_lpa_filter_criteria.json

This file was deleted.

0 comments on commit 0b4cfa7

Please sign in to comment.