Skip to content

Commit 4764def

Browse files
authored
Merge branch 'main' into timothee-image
2 parents d6631ea + 66305b4 commit 4764def

4 files changed

Lines changed: 21 additions & 13 deletions

File tree

.github/workflows/reusable-build.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -96,25 +96,31 @@ jobs:
9696
9797
- name: Setup Syft
9898
id: setup-syft
99-
if: false
100-
uses: anchore/sbom-action/download-syft@a930d0ac434e3182448fe678398ba5713717112a # v0
99+
if: github.event_name != 'pull_request'
100+
uses: anchore/sbom-action/download-syft@62ad5284b8ced813296287a0b63906cb364b73ee # v0
101101
with:
102-
syft-version: v1.20.0
102+
syft-version: v1.39.0
103103

104104
- name: Generate SBOM
105-
if: false
105+
if: github.event_name != 'pull_request'
106106
id: generate-sbom
107107
env:
108108
IMAGE: ${{ env.IMAGE_NAME }}
109109
STREAM_NAME: ${{ matrix.stream_name }}
110110
SYFT_CMD: ${{ steps.setup-syft.outputs.cmd }}
111+
OCI_DIR: "/tmp/image-oci-dir"
111112
run: |
112-
sudo systemctl start podman.socket
113+
mkdir -p ${OCI_DIR}/rootfs
114+
sudo podman container create --replace --name bluefin-tmp "localhost/${IMAGE}:${STREAM_NAME}"
115+
sudo podman export bluefin-tmp | sudo tar -C ${OCI_DIR}/rootfs -xf -
116+
sudo podman container rm bluefin-tmp
113117
114118
OUTPUT_PATH="$(mktemp -d)/sbom.json"
115119
export SYFT_PARALLELISM=$(($(nproc)*2))
116-
sudo $SYFT_CMD ${IMAGE}:${STREAM_NAME} -o spdx-json=${OUTPUT_PATH}
120+
sudo $SYFT_CMD --source-name "${IMAGE}"-"${STREAM_NAME}" ${OCI_DIR} -o syft-json=${OUTPUT_PATH}
121+
du -sh ${OUTPUT_PATH}
117122
echo "OUTPUT_PATH=${OUTPUT_PATH}" >> $GITHUB_OUTPUT
123+
sudo rm -rf ${OCI_DIR}
118124
119125
- name: Rechunk Image
120126
id: rechunk-image
@@ -226,7 +232,7 @@ jobs:
226232
COSIGN_PRIVATE_KEY: ${{ secrets.SIGNING_SECRET }}
227233

228234
- name: Add SBOM Attestation
229-
if: false
235+
if: github.event_name != 'pull_request'
230236
env:
231237
IMAGE: ${{ env.IMAGE_REGISTRY }}/${{ env.IMAGE_NAME }}
232238
DIGEST: ${{ steps.push.outputs.outputs && fromJSON(steps.push.outputs.outputs).digest }}

.github/workflows/validate-renovate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6
2121

2222
- name: Setup Node.js
23-
uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6
23+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6
2424
with:
2525
node-version: latest
2626

build_files/shared/build.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ set -eoux pipefail
44

55
echo "::group:: Copy Files"
66

7-
# Conflicts with a ton of packages, has to be removed before we copy all the files as well
8-
rpm --erase --nodeps fedora-logos
7+
# Keep *-logos in RPM DB for downstream package installations
8+
# We are not allowed to ship an empty fedora-logos package
9+
dnf -y swap fedora-logos generic-logos
10+
rpm --erase --nodeps --nodb generic-logos
911

1012
# Copy Files to Container
1113
rsync -rvK /ctx/system_files/shared/ /

image-versions.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@ images:
22
- name: silverblue-main
33
image: ghcr.io/ublue-os/silverblue-main
44
tag: latest
5-
digest: sha256:d01f844f21e1255fb0e44a85f218f26f3108d2c97d5f12c8fcbfb2ce69b86504
5+
digest: sha256:a05cd4283ba00d9be13b124b44f5eaef05f048733c099b61922c921ccf75f5eb
66
- name: common
77
image: ghcr.io/projectbluefin/common
88
tag: latest
9-
digest: sha256:233b4705313d3a208fed25cee630fbc414f8b72b8def89a4f195a862e320e127
9+
digest: sha256:7c2058a1ab0bd915c822e80df40e961d00877ac02c1e89edbfef5148301e4d2c
1010
- name: brew
1111
image: ghcr.io/ublue-os/brew
1212
tag: latest
13-
digest: sha256:f9637549a24a7e02315c28db04cc0827dfc04bb74cea3be5c187f10c262c30d2
13+
digest: sha256:9021d14310509308f3cb8cc7cab98e5868212b2a744e044e998798d2eec26722

0 commit comments

Comments
 (0)