Skip to content

Commit ec34a7e

Browse files
added RL workflow
1 parent 7ec9a87 commit ec34a7e

File tree

1 file changed

+71
-0
lines changed

1 file changed

+71
-0
lines changed

.github/workflows/rl-secure.yml

+71
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
name: RL-Secure
2+
run-name: rl-scanner
3+
4+
on:
5+
merge_group:
6+
workflow_dispatch:
7+
push:
8+
branches: ['main']
9+
pull_request:
10+
types:
11+
- opened
12+
- synchronize
13+
14+
jobs:
15+
rl-scanner:
16+
if: github.event_name == 'workflow_dispatch' ||
17+
(github.event_name == 'pull_request' && startsWith(github.event.pull_request.head.ref, 'release/'))
18+
runs-on: ubuntu-latest
19+
20+
permissions:
21+
pull-requests: write
22+
id-token: write
23+
24+
steps:
25+
- uses: actions/checkout@v4
26+
27+
- name: Install npm dependencies
28+
run: npm ci
29+
30+
- name: Build Dist Folder
31+
run: npm run build
32+
33+
- name: Create tgz build artifact
34+
run: |
35+
tar -czvf nextjs-auth0.tgz *
36+
- name: Get Artifact Version
37+
id: get_version
38+
run: echo "version=$(cat .version)" >> $GITHUB_ENV
39+
40+
- name: Set up Python
41+
uses: actions/setup-python@v4
42+
with:
43+
python-version: "3.10"
44+
45+
- name: Install Python dependencies
46+
run: |
47+
pip install --upgrade pip
48+
pip install boto3 requests
49+
- name: Configure AWS credentials
50+
uses: aws-actions/configure-aws-credentials@v1
51+
with:
52+
role-to-assume: ${{ secrets.PRODSEC_TOOLS_ARN }}
53+
aws-region: us-east-1
54+
mask-aws-account-id: true
55+
56+
- name: Run Reversing Labs Wrapper Scanner
57+
env:
58+
RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
59+
RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
60+
SIGNAL_HANDLER_TOKEN: ${{ secrets.SIGNAL_HANDLER_TOKEN }}
61+
WRAPPER_INDEX_URL: "https://${{ secrets.PRODSEC_TOOLS_USER }}:${{ secrets.PRODSEC_TOOLS_TOKEN }}@a0us.jfrog.io/artifactory/api/pypi/python-local/simple"
62+
PYTHONUNBUFFERED: 1
63+
run: |
64+
pip install rl-wrapper --index-url $WRAPPER_INDEX_URL && \
65+
rl-wrapper \
66+
--artifact "$(pwd)/node-auth0.tgz" \
67+
--name "${{ github.event.repository.name }}" \
68+
--version "${{ steps.get_version.outputs.version }}" \
69+
--repository "${{ github.repository }}" \
70+
--commit "${{ github.sha }}" \
71+
--build-env "github_action"

0 commit comments

Comments
 (0)