Skip to content

Commit 7fe1b9e

Browse files
authored
Restrict SBOM upload to only Pillow JSON (#9598)
2 parents 0ef81c3 + 4af29fb commit 7fe1b9e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/wheels.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -294,12 +294,12 @@ jobs:
294294
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
295295
with:
296296
name: sbom
297-
path: "*.cdx.json"
297+
path: "pillow-*.cdx.json"
298298

299299
- name: Validate SBOM
300300
run: |
301301
python3 -m pip install -r .ci/requirements-sbom.txt
302-
check-jsonschema --schemafile "https://raw.githubusercontent.com/CycloneDX/specification/1.7/schema/bom-1.7.schema.json" *.cdx.json
302+
check-jsonschema --schemafile "https://raw.githubusercontent.com/CycloneDX/specification/1.7/schema/bom-1.7.schema.json" pillow-*.cdx.json
303303
304304
sbom-publish:
305305
if: |
@@ -320,7 +320,7 @@ jobs:
320320
- name: Attach SBOM to GitHub release
321321
env:
322322
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
323-
run: gh release upload "$GITHUB_REF_NAME" *.cdx.json
323+
run: gh release upload "$GITHUB_REF_NAME" pillow-*.cdx.json
324324

325325
pypi-publish:
326326
if: github.event.repository.fork == false && github.event_name == 'push' && startsWith(github.ref, 'refs/tags')

0 commit comments

Comments
 (0)