Skip to content

Commit

Permalink
Fix sbom naming
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Jan 9, 2024
1 parent 49e527c commit 19e00f7
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-on-push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ jobs:
needs: build-int
uses: ./.github/workflows/reusable-sbom.yaml
with:
environment: pitc-ptime-int
project_name: pitc-ptime-int
artifact-prefix: int-
secrets:
dependency_track_url: ${{ secrets.DEPTRACK_URL }}
dependency_track_api_key: ${{ secrets.DEPTRACK_API_KEY }}
Expand All @@ -54,8 +54,8 @@ jobs:
needs: build-prod
uses: ./.github/workflows/reusable-sbom.yaml
with:
environment: pitc-ptime-prod
project_name: pitc-ptime-prod
artifact-prefix: prod-
secrets:
dependency_track_url: ${{ secrets.DEPTRACK_URL }}
dependency_track_api_key: ${{ secrets.DEPTRACK_API_KEY }}
Expand All @@ -76,8 +76,8 @@ jobs:
needs: build-pude
uses: ./.github/workflows/reusable-sbom.yaml
with:
environment: pude-ptime-prod
project_name: pude-ptime-prod
artifact-prefix: pude-
secrets:
dependency_track_url: ${{ secrets.DEPTRACK_URL }}
dependency_track_api_key: ${{ secrets.DEPTRACK_API_KEY }}
11 changes: 5 additions & 6 deletions .github/workflows/reusable-sbom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ name: Generate and push an SBOM dependency list
on:
workflow_call:
inputs:
environment:
type: string
description: "Environment to build in"
required: true
project_name:
type: string
description: "Project name to report to dependency track"
required: true
artifact-prefix:
type: string
description: "what to prefix the artifacts with e.g. int-"
default: ""

secrets:
dependency_track_url:
Expand All @@ -23,7 +23,6 @@ on:
jobs:
generate-and-push-sbom:
runs-on: 'ubuntu-latest'
environment: ${{ inputs.environment }}
env:
HEADLESS: true
RAILS_TEST_DB_NAME: 'postgres'
Expand Down Expand Up @@ -82,7 +81,7 @@ jobs:
- uses: actions/upload-artifact@v4
if: always()
with:
name: sboms
name: ${{ inputs.artifact-prefix }}sboms
path: |
./sbom-npm.xml
./sbom-ruby.xml
Expand Down

0 comments on commit 19e00f7

Please sign in to comment.