Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 26 additions & 1 deletion .github/workflows/build-shell-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,33 @@ jobs:
run: >
docker save shell-ui:v$SHELL_UI_VERSION |
gzip > shell-ui.tar.gz
- name: Install syft tool to build the sbom
run: |
SYFT_VERSION="1.19.0"
SYFT_INSTALLER="syft_${SYFT_VERSION}_linux_amd64.deb"
SYFT_CHECKSUM="f3667d6abfa97a1e5614882f81e0a0b090f0047e0df7025b568fa87b6d95ac58"
wget https://github.com/anchore/syft/releases/download/v${SYFT_VERSION}/${SYFT_INSTALLER}
ACTUAL_CHECKSUM=$(sha256sum ${SYFT_INSTALLER} | cut -d ' ' -f1)
if [ "$ACTUAL_CHECKSUM" != "$SYFT_CHECKSUM" ]; then
echo "ERROR: Checksum verification failed for ${SYFT_INSTALLER}"
echo "Expected: ${SYFT_CHECKSUM}"
echo "Got: ${ACTUAL_CHECKSUM}"
exit 1
fi
sudo dpkg -i ${SYFT_INSTALLER}
- name: "build Software Bill of materials (SBOM)"
run: |
set -x
cd shell-ui
syft scan dir:./ --source-name=shell-ui --source-version "$SHELL_UI_VERSION" --output cyclonedx-json=../shell.tar.sbom.spdx.json

- name: Prepare artifacts
run: mkdir -p "artifacts/images" && mv shell-ui.tar.gz artifacts/images/ && mv shell.tar artifacts/images/
run: |
mkdir -p "artifacts/images"
mv shell-ui.tar.gz artifacts/images/
mv shell.tar artifacts/images/
mv shell.tar.sbom.spdx.json artifacts/images/

- name: Upload artifacts
uses: scality/action-artifacts@v4
with:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,10 @@ jobs:
run: >
curl --fail -LO -u ${{ secrets.ARTIFACTS_USER }}:${{ secrets.ARTIFACTS_PASSWORD }}
${{ inputs.artifacts-url || steps.artifacts.outputs.link }}/images/shell.tar
- name: Retrieve shell SBOM from artifacts
run: >
curl --fail -LO -u ${{ secrets.ARTIFACTS_USER }}:${{ secrets.ARTIFACTS_PASSWORD }}
${{ inputs.artifacts-url || steps.artifacts.outputs.link }}/images/shell.tar.sbom.spdx.json
- name: Load shell-ui image
run: docker load < shell-ui.tar.gz
- name: Retrieve product.txt from artifacts
Expand Down Expand Up @@ -149,5 +153,6 @@ jobs:
draft: false
files: |
shell.tar
shell.tar.sbom.spdx.json
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading