Skip to content

Commit ea8acaf

Browse files
add ruby-erlang language support
Signed-off-by: shanmugapriya-tr <shanmugapriya.tiruchengoderamanathan@progress.com>
1 parent 5e24c54 commit ea8acaf

1 file changed

Lines changed: 14 additions & 6 deletions

File tree

.github/workflows/sbom.yml

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ on:
8383
type: boolean
8484
default: false
8585
language:
86-
description: 'Primary programming language of the project, used for SBOM enrichment (e.g., "ruby", "go", "python")'
86+
description: 'Primary programming language of the project, used for SBOM enrichment (e.g., "ruby", "go", "python", "erlang", "ruby-erlang")'
8787
required: false
8888
type: string
8989
default: 'ruby'
@@ -234,15 +234,15 @@ jobs:
234234
uses: actions/checkout@v6
235235

236236
- name: Set up Ruby and run bundle install
237-
if: inputs.language == 'ruby'
237+
if: inputs.language == 'ruby' || inputs.language == 'ruby-erlang'
238238
uses: ruby/setup-ruby@v1
239239
with:
240240
ruby-version: '3.4.2'
241241
bundler-cache: false
242242
working-directory: ${{ inputs.ruby-app-directory != '' && inputs.ruby-app-directory || '.' }}
243243

244244
- name: Configure Bundler for private Ruby gems
245-
if: ${{ inputs.run-bundle-install == true && inputs.language == 'ruby' }}
245+
if: ${{ inputs.run-bundle-install == true && (inputs.language == 'ruby' || inputs.language == 'ruby-erlang') }}
246246
run: |
247247
if [ -z "${{ secrets.PRIVATE_ACCESS_KITCHEN_CHEF_ENTERPRISE }}" ]; then
248248
echo "Skipping: PRIVATE_ACCESS_KITCHEN_CHEF_ENTERPRISE secret not configured or not in scope"
@@ -251,20 +251,28 @@ jobs:
251251
bundle config set --local github.com "x-access-token:${{ secrets.PRIVATE_ACCESS_KITCHEN_CHEF_ENTERPRISE }}"
252252
253253
- name: Set up Erlang/OTP and rebar3
254-
if: inputs.language == 'erlang'
254+
if: inputs.language == 'erlang' || inputs.language == 'ruby-erlang'
255255
uses: erlef/setup-beam@v1
256256
with:
257257
otp-version: '25.3.2.16'
258258
rebar3-version: '3.22.0'
259259

260+
- name: Verify rebar3 installation and add to PATH
261+
if: inputs.language == 'erlang' || inputs.language == 'ruby-erlang'
262+
run: |
263+
echo "Checking for rebar3..."
264+
which rebar3 || echo "rebar3 not found in PATH"
265+
rebar3 version || echo "rebar3 command failed"
266+
echo "PATH: $PATH"
267+
260268
- name: Configure git for private Go modules
261269
if : ${{ inputs.go-private-modules != '' }}
262270
env:
263271
GOPRIVATE: ${{ inputs.go-private-modules }}
264272
run: git config --global url."https://${{ secrets.GH_TOKEN }}@github.com/".insteadOf "https://github.com/"
265273

266274
- name: generate Gemfile.lock if needed for Ruby projects
267-
if: ${{ inputs.run-bundle-install == true && inputs.language == 'ruby' }}
275+
if: ${{ inputs.run-bundle-install == true && (inputs.language == 'ruby' || inputs.language == 'ruby-erlang') }}
268276
continue-on-error: true
269277
working-directory: ${{ inputs.ruby-app-directory != '' && inputs.ruby-app-directory || '.' }}
270278
run: |
@@ -273,7 +281,7 @@ jobs:
273281
fi
274282
275283
- name: attach artifact for Gemfile.lock for debugging
276-
if: ${{ inputs.language == 'ruby' }}
284+
if: ${{ inputs.language == 'ruby' || inputs.language == 'ruby-erlang' }}
277285
uses: actions/upload-artifact@v4
278286
continue-on-error: true
279287
with:

0 commit comments

Comments
 (0)