Skip to content

Commit 73bb2aa

Browse files
authored
Merge pull request #81 from younesAmin/sbom-generation-creation
Add sbom_generation file
2 parents e8c8809 + b46383d commit 73bb2aa

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

sbom_generation.yaml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
2+
3+
# This OCI DevOps build specification file [1] generates a Software Bill of Materials (SBOM) of the repository.
4+
# The file is needed to run checks for third-party vulnerabilities and business approval according to Oracle’s GitHub policies.
5+
# [1] https://docs.oracle.com/en-us/iaas/Content/devops/using/build_specs.htm
6+
7+
version: 0.1
8+
component: build
9+
timeoutInSeconds: 1000
10+
shell: bash
11+
12+
steps:
13+
- type: Command
14+
name: "Install cyclonedx_py module"
15+
command: |
16+
pip install cyclonedx-bom
17+
- type: Command
18+
name: "Run Python cyclonedx_py module"
19+
command: |
20+
# For more details, visit https://github.com/CycloneDX/cyclonedx-python/blob/main/README.md
21+
python3 -m cyclonedx_py -r -pb --format json -o artifactSBOM.json --schema-version 1.4
22+
outputArtifacts:
23+
- name: artifactSBOM
24+
type: BINARY
25+
location: ${OCI_PRIMARY_SOURCE_DIR}/artifactSBOM.json

0 commit comments

Comments
 (0)