Skip to content

Commit c580508

Browse files
SecAI-Hubclaude
andcommitted
Fix build SBOM: scan source tree instead of full OS image
The SBOM generation step was trying to pull and scan the entire Fedora Silverblue OS image (multi-GB, thousands of system packages) via `syft scan ghcr.io/secai-hub/secai_os`. This exceeded the GitHub Actions runner memory/time limits, causing the step to hang indefinitely. Switch to scanning the source tree (`path: .`) which covers our custom services and configuration. Fedora provides its own SBOMs for the base OS packages. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 54849d6 commit c580508

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,16 @@ jobs:
4141
if: github.event_name != 'pull_request'
4242
run: echo "IMAGE_REF=ghcr.io/${GITHUB_REPOSITORY,,}" >> "$GITHUB_ENV"
4343

44+
# Scan the source tree rather than the full OS image.
45+
# The OS image is a multi-GB Fedora Silverblue base with thousands of
46+
# system packages — scanning it via `syft scan <image>` exceeds the
47+
# runner's memory/time limits. Fedora provides its own SBOMs for base
48+
# packages. This SBOM covers our custom services and configuration.
4449
- name: Generate SBOM
4550
if: github.event_name != 'pull_request'
4651
uses: anchore/sbom-action@57aae528053a48a3f6235f2d9461b05fbcb7366d # v0.23.1
4752
with:
48-
image: ${{ env.IMAGE_REF }}
53+
path: .
4954
format: cyclonedx-json
5055
output-file: sbom.cdx.json
5156

0 commit comments

Comments
 (0)