Skip to content

Commit

Permalink
Add merge group
Browse files Browse the repository at this point in the history
  • Loading branch information
developerkunal committed Jun 28, 2024
1 parent bd5ce7f commit 44c2048
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .github/workflows/rl-secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ run-name: rl-scanner-only
description: Workflow for scanning build artifacts with RL-Secure

on:
merge_group:
workflow_dispatch:
push:
branches: [ "main" ]
branches: ['main']
pull_request_target:
types:
- opened
- synchronize

jobs:
checkout-build-scan-only:
description: Checkout, build, and scan the project
Expand All @@ -21,21 +23,22 @@ jobs:

steps:
- uses: actions/checkout@v4

- name: Install npm dependencies
run: npm install

- name: Build project
run: npm run build
- name: Create tgz build artifact
run: |
tar -czvf auth0-spa-js.tgz *
- name: Zip build artifact
- name: Verify tgz file
run: |
zip -r auth0-spa-js.zip dist
ls -la packages
- name: Create build artifact
id: output_build_artifact
run: |
echo "scanfile=auth0-spa-js.zip" >> $GITHUB_OUTPUT
echo "scanfile=auth0-spa-js.tgz" >> $GITHUB_OUTPUT
- name: Scan packages with rl-secure
id: scan
Expand All @@ -45,7 +48,6 @@ jobs:
uses: reversinglabs/gh-action-rl-scanner-only@v1
with:
artifact-to-scan: ${{ steps.output_build_artifact.outputs.scanfile }}
report-path: "My_Report_Dir"

- name: Get the scan status output
if: success() || failure()
Expand Down

0 comments on commit 44c2048

Please sign in to comment.