Skip to content

Commit

Permalink
Try to fix sbom upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Kagemaru committed Mar 8, 2024
1 parent 95d2715 commit bae1402
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/reusable-sbom.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,37 +23,37 @@ on:
jobs:
generate-and-push-sbom:
runs-on: 'ubuntu-latest'
env:
HEADLESS: true
RAILS_TEST_DB_NAME: 'postgres'
RAILS_TEST_DB_USERNAME: 'postgres'
RAILS_TEST_DB_PASSWORD: 'postgres'
RAILS_ENV: 'test'
CI: 'true'
PGDATESTYLE: German

services:
postgres:
image: 'postgres:11'
env:
POSTGRES_PASSWORD: 'postgres'
ports: [ '5432:5432' ]
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 10s
--health-retries 10
memcached:
image: 'memcached'
ports: [ '11211:11211' ]
# env:
# HEADLESS: true
# RAILS_TEST_DB_NAME: 'postgres'
# RAILS_TEST_DB_USERNAME: 'postgres'
# RAILS_TEST_DB_PASSWORD: 'postgres'
# RAILS_ENV: 'test'
# CI: 'true'
# PGDATESTYLE: German
#
# services:
# postgres:
# image: 'postgres:11'
# env:
# POSTGRES_PASSWORD: 'postgres'
# ports: [ '5432:5432' ]
# options: >-
# --health-cmd pg_isready
# --health-interval 10s
# --health-timeout 10s
# --health-retries 10
# memcached:
# image: 'memcached'
# ports: [ '11211:11211' ]

steps:
- uses: actions/checkout@v4
- name: 'Generate SBOM for ruby and npm dependencies'
run: |
npm install -g @cyclonedx/cdxgen
cdxgen -o ./sbom-ruby.json -t ruby --spec-version 1.4 .
cdxgen -o ./sbom-npm.json -t npm --spec-version 1.4 .
cdxgen -o ./sbom-ruby.json -t ruby .
cdxgen -o ./sbom-npm.json -t npm .
- name: 'Merge frontend and backend SBOMs'
run: |
Expand Down

0 comments on commit bae1402

Please sign in to comment.