Skip to content

Commit

Permalink
chore: merging Python and keycloak files into a common directory stru…
Browse files Browse the repository at this point in the history
…cture

Signed-off-by: Ian Dunbar-Hall <[email protected]>
  • Loading branch information
idunbarh committed Sep 17, 2024
1 parent 201fa1a commit e166c90
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 e166c90

Please sign in to comment.