Skip to content

Fix release SBOM build cache permissions#54

Merged
mark-e-deyoung merged 1 commit intomainfrom
fix/release-sbom-cache-permissions
Feb 21, 2026
Merged

Fix release SBOM build cache permissions#54
mark-e-deyoung merged 1 commit intomainfrom
fix/release-sbom-cache-permissions

Conversation

@mark-e-deyoung
Copy link
Contributor

Summary

Fixes release workflow failure in Build release binaries for SBOM caused by cache write permission issues on GitHub runners.

Root cause

gg build used named-volume cache strategy in release workflow context; on runner state, /go-cache was not writable for mapped UID/GID during build step.

Change

For release binary build step only, force host cache mode with runner-owned writable path:

  • SUPRAGOFLOW_CACHE_STRATEGY=host
  • SUPRAGOFLOW_HOST_CACHE_ROOT=${{ runner.temp }}/supragoflow-cache

Validation

  • ./scripts/check-policy-conformance.sh
  • SUPRAGOFLOW_CACHE_STRATEGY=host SUPRAGOFLOW_HOST_CACHE_ROOT=/tmp/supragoflow-release-cache SUPRAGOFLOW_BUILD_VERSION=v0.0.2 ./scripts/gg build linux amd64
  • SUPRAGOFLOW_CACHE_STRATEGY=host SUPRAGOFLOW_HOST_CACHE_ROOT=/tmp/supragoflow-release-cache SUPRAGOFLOW_BUILD_VERSION=v0.0.2 ./scripts/gg build windows amd64

@mark-e-deyoung mark-e-deyoung merged commit 4e3a081 into main Feb 21, 2026
3 checks passed
@mark-e-deyoung mark-e-deyoung deleted the fix/release-sbom-cache-permissions branch February 21, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant