@@ -137,6 +137,17 @@ jobs:
137137 -e "postgres_major_version=${{ env.POSTGRES_MAJOR_VERSION }}" \
138138 manifest-playbook.yml
139139
140+ - name : Upload SBOM to s3 staging
141+ run : |
142+ PG_VERSION=${{ steps.process_release_version.outputs.version }}
143+ if [ -f "ubuntu-sbom-${PG_VERSION}.spdx.json" ]; then
144+ aws s3 cp "ubuntu-sbom-${PG_VERSION}.spdx.json" \
145+ "s3://${{ secrets.ARTIFACTS_BUCKET }}/manifests/postgres-${PG_VERSION}/sbom.spdx.json"
146+ echo "SBOM uploaded to staging"
147+ else
148+ echo "Warning: SBOM file not found, skipping upload"
149+ fi
150+
140151 - name : Upload nix flake revision to s3 staging
141152 run : |
142153 aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
@@ -157,7 +168,18 @@ jobs:
157168 -e "internal_artifacts_bucket=${{ secrets.PROD_ARTIFACTS_BUCKET }}" \
158169 -e "postgres_major_version=${{ env.POSTGRES_MAJOR_VERSION }}" \
159170 manifest-playbook.yml
160-
171+
172+ - name : Upload SBOM to s3 prod
173+ run : |
174+ PG_VERSION=${{ steps.process_release_version.outputs.version }}
175+ if [ -f "ubuntu-sbom-${PG_VERSION}.spdx.json" ]; then
176+ aws s3 cp "ubuntu-sbom-${PG_VERSION}.spdx.json" \
177+ "s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/manifests/postgres-${PG_VERSION}/sbom.spdx.json"
178+ echo "SBOM uploaded to prod"
179+ else
180+ echo "Warning: SBOM file not found, skipping upload"
181+ fi
182+
161183 - name : Upload nix flake revision to s3 prod
162184 run : |
163185 aws s3 cp /tmp/pg_binaries.tar.gz s3://${{ secrets.PROD_ARTIFACTS_BUCKET }}/upgrades/postgres/supabase-postgres-${{ steps.process_release_version.outputs.version }}/20.04.tar.gz
0 commit comments