Skip to content

Commit

Permalink
Merge pull request #25 from CISA-SBOM-Community/reorg
Browse files Browse the repository at this point in the history
chore: merging Python and keycloak files into a common directory structure
  • Loading branch information
idunbarh authored Sep 17, 2024
2 parents 201fa1a + e166c90 commit 8717d3e
Show file tree
Hide file tree
Showing 15 changed files with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/phase_1_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
# than 'docker/build-push-action' to make the run
# more pipeline agnostic.
- name: Build Docker image
working-directory: "Phase 1/Python"
working-directory: "phase_1/Python"
run: |
docker build -t phase-1-python .
Expand All @@ -29,7 +29,7 @@ jobs:
chmod +x /tmp/trivy
- name: Generate SBOM with Trivy
working-directory: "Phase 1/Python"
working-directory: "phase_1/Python"
run: |
/tmp/trivy image \
--format cyclonedx \
Expand Down Expand Up @@ -66,15 +66,15 @@ jobs:
chmod +x /tmp/trivy
- name: "CycloneDX: Generate SBOM"
working-directory: "Phase 1/Python"
working-directory: "phase_1/Python"
run: |
/tmp/trivy fs \
--format cyclonedx \
--output /tmp/application-sbom.cdx.json \
requirements.txt
- name: "SPDX: Generate SBOM"
working-directory: "Phase 1/Python"
working-directory: "phase_1/Python"
run: |
/tmp/trivy fs \
--format spdx-json \
Expand Down Expand Up @@ -108,7 +108,7 @@ jobs:
# We're using `envsubst` here to populate the metadata
# template from environment variables
export SBOM_NAME='phase1-python-container'
cat "Phase 1/Python/sbom/metadata.cdx.json.tmpl" | jq | \
cat "phase_1/Python/sbom/metadata.cdx.json.tmpl" | jq | \
envsubst > metadata.cdx.json
unset SBOM_NAME
Expand All @@ -123,7 +123,7 @@ jobs:
# We're using `envsubst` here to populate the metadata
# template from environment variables
export SBOM_NAME='phase1-python-application'
cat "Phase 1/Python/sbom/metadata.cdx.json.tmpl" | jq | \
cat "phase_1/Python/sbom/metadata.cdx.json.tmpl" | jq | \
envsubst > metadata.cdx.json
unset SBOM_NAME
Expand All @@ -138,7 +138,7 @@ jobs:
# We're using `envsubst` here to populate the metadata
# template from environment variables
export SBOM_NAME='phase1-python-container'
cat "Phase 1/Python/sbom/metadata.spdx.json.tmpl" | jq | \
cat "phase_1/Python/sbom/metadata.spdx.json.tmpl" | jq | \
envsubst > metadata.spdx.json
unset SBOM_NAME
Expand All @@ -153,7 +153,7 @@ jobs:
# We're using `envsubst` here to populate the metadata
# template from environment variables
export SBOM_NAME='phase1-python-application'
cat "Phase 1/Python/sbom/metadata.cdx.json.tmpl" | jq | \
cat "phase_1/Python/sbom/metadata.cdx.json.tmpl" | jq | \
envsubst > metadata.cdx.json
unset SBOM_NAME
Expand Down Expand Up @@ -195,7 +195,7 @@ jobs:
# We're using `envsubst` here to populate the metadata
# template from environment variables
cat "Phase 1/Python/sbom/top-level.cdx.json.tmpl" | jq | \
cat "phase_1/Python/sbom/top-level.cdx.json.tmpl" | jq | \
envsubst > top-level-sbom.cdx.json.tmp
# Set GITHUB_RUN_NUMBER as the version of the SBOM
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 8717d3e

Please sign in to comment.