Skip to content

Commit

Permalink
update the flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
developerkunal committed Jun 28, 2024
1 parent 60579b1 commit 440918b
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/rl-secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,20 @@ jobs:

steps:
- uses: actions/checkout@v4
- name: Create build artifact
id: build
shell: bash

- name: Install npm dependencies
run: npm install

- name: Build project
run: npm run build

- name: Zip build artifact
run: |
# Install dependencies
npm install
# Zip the project with dependencies
zip -r auth0-spa-js.zip . -x node_modules/\*
zip -r auth0-spa-js.zip dist
# Set the scanfile output parameter
- name: Create build artifact
id: output_build_artifact
run: |
echo "scanfile=auth0-spa-js.zip" >> $GITHUB_OUTPUT
- name: Scan packages with rl-secure
Expand All @@ -39,7 +43,7 @@ jobs:
RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
uses: reversinglabs/gh-action-rl-scanner-only@v1
with:
artifact-to-scan: ${{ steps.build.outputs.scanfile }}
artifact-to-scan: ${{ steps.output_build_artifact.outputs.scanfile }}
report-path: "My_Report_Dir"

- name: Get the scan status output
Expand Down

0 comments on commit 440918b

Please sign in to comment.