Skip to content

Commit 2fd403b

Browse files
committed
NH-89340: update to use gh-action-rl-scanner-cloud-only
1 parent 0103bc2 commit 2fd403b

File tree

2 files changed

+19
-43
lines changed

2 files changed

+19
-43
lines changed

.github/workflows/ci-reverse-lab.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,23 +38,23 @@ jobs:
3838
echo "Gem name: ${{ steps.build-apm-ruby-ci-reverse-lab.outputs.current_gem }}"
3939
echo "Gem version: ${{ steps.build-apm-ruby-ci-reverse-lab.outputs.gem_version }}"
4040
41-
- name: Run Reverse Lab Scan
41+
- name: Scan build artifact on the Portal
42+
id: rl-scan
43+
44+
env:
45+
RLPORTAL_ACCESS_TOKEN: ${{ secrets.REVERSE_LAB_TOKEN }}
46+
47+
uses: reversinglabs/gh-action-rl-scanner-cloud-only@v1
48+
with:
49+
artifact-to-scan: ${{ steps.build-apm-ruby-ci-reverse-lab.outputs.current_gem }}
50+
rl-verbose: true
51+
rl-portal-server: solarwinds
52+
rl-portal-org: SolarWinds
53+
rl-portal-group: SaaS-Agents-SWO
54+
rl-package-url: solarwinds-apm-ruby/apm-ruby@${{ steps.build-apm-ruby-ci-reverse-lab.outputs.gem_version }}
55+
56+
- name: report the scan status
57+
if: success() || failure()
4258
run: |
43-
docker run --rm \
44-
-u $(id -u):$(id -g) \
45-
-v "$(pwd)/:/packages:ro" \
46-
-v "$(pwd)/reports:/reports" \
47-
-e RLPORTAL_ACCESS_TOKEN=${{ secrets.REVERSE_LAB_TOKEN }} \
48-
reversinglabs/rl-scanner-cloud \
49-
rl-scan \
50-
--rl-portal-server solarwinds \
51-
--rl-portal-org SolarWinds \
52-
--rl-portal-group "SaaS-Agents-SWO" \
53-
--purl solarwinds-apm-ruby/apm-ruby@${{ steps.build-apm-ruby-ci-reverse-lab.outputs.gem_version }} \
54-
--file-path /packages/${{ steps.build-apm-ruby-ci-reverse-lab.outputs.current_gem }} \
55-
--report-path /reports \
56-
--report-format all
57-
58-
- name: Check Scan Status
59-
working-directory: .github/workflows/scripts
60-
run: ruby ci-reverse-lab-scan.rb
59+
echo "The status is: '${{ steps.rl-scan.outputs.status }}'"
60+
echo "The description is: '${{ steps.rl-scan.outputs.description }}'"

.github/workflows/scripts/ci-reverse-lab-scan.rb

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)