-
Notifications
You must be signed in to change notification settings - Fork 259
53 lines (44 loc) · 1.31 KB
/
rl-secure.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
name: RL-Secure Workflow
run-name: rl-scanner-only
on:
merge_group:
workflow_dispatch:
push:
branches: ['main']
pull_request:
types:
- opened
- synchronize
jobs:
checkout-build-scan-only:
runs-on: ubuntu-latest
permissions:
statuses: write
pull-requests: write
security-events: write
actions: read
contents: read
steps:
- uses: actions/checkout@v4
- name: Install npm dependencies
run: npm install
- name: Create tgz build artifact
run: |
tar -czvf auth0-react.tgz *
- name: Create build artifact
id: output_build_artifact
run: |
echo "scanfile=auth0-react.tgz" >> $GITHUB_OUTPUT
- name: Scan packages with rl-secure
id: scan
env:
RLSECURE_ENCODED_LICENSE: ${{ secrets.RLSECURE_ENCODED_LICENSE }}
RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
uses: reversinglabs/gh-action-rl-scanner-composite@v1
with:
artifact-to-scan: ${{ steps.output_build_artifact.outputs.scanfile }}
- name: Get the scan status output
if: success() || failure()
run: |
echo "The status is: '${{ steps.scan.outputs.status }}'"
echo "The description is: '${{ steps.scan.outputs.description }}'"