-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MLPAB-2343 - create a self service SBOM generation workflow in GitHub…
… actions (#1390)
- Loading branch information
1 parent
1420523
commit 91880ff
Showing
3 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,19 +26,29 @@ defaults: | |
shell: bash | ||
|
||
jobs: | ||
|
||
export_sbom: | ||
name: Export Software Bill of Materials (SBOM) for ${{ inputs.image_tag }} | ||
name: Export Software Bill of Materials (SBOM) for modernising-lpa ${{ inputs.image_tag }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: unfor19/install-aws-cli-action@v1 | ||
- name: Configure AWS Credentials | ||
uses: aws-actions/[email protected] | ||
with: | ||
aws-region: eu-west-1 | ||
role-to-assume: arn:aws:iam::311462405659:role/modernising-lpa-github-actions-sbom-export | ||
role-duration-seconds: 900 | ||
role-session-name: GithubActionsExportSBOM | ||
- name: Request and Download SBO Export for ${{ inputs.image_tag }} | ||
- name: Request and Download SBOM Export for modernising-lpa ${{ inputs.image_tag }} | ||
working-directory: scripts/sbom_exporter | ||
id: export_and_download_sbom | ||
run: | | ||
./export_ecr_image_sbom.sh modernising-lpa ${{ inputs.image_tag }} modernising_lpa_filter_criteria.json | ||
- name: Upload SBOMs as a Github artifact | ||
if: always() | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: modernising-lpa-sbom-${{ inputs.image_tag }} | ||
path: '${{ github.workspace }}/scripts/sbom_exporter/exports/**/*.json' | ||
retention-days: 20 |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,3 +41,4 @@ multi-reporter-config.json | |
/coverage/* | ||
|
||
scripts/sbom_exporter/exports/* | ||
scripts/sbom_exporter/tmp.*.json |
This file contains 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