Skip to content

Commit fbcc611

Browse files
committed
Added RL scanner workflow
1 parent 59fad7e commit fbcc611

File tree

1 file changed

+85
-0
lines changed

1 file changed

+85
-0
lines changed

.github/workflows/rl-scanner.yml

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

0 commit comments

Comments
 (0)