Skip to content

Commit

Permalink
Update Scanner
Browse files Browse the repository at this point in the history
  • Loading branch information
developerkunal committed Oct 24, 2024
1 parent 7ee5ce8 commit 3557cf1
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 15 deletions.
13 changes: 10 additions & 3 deletions .github/actions/rl-scanner/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,23 @@ runs:
pip install --upgrade pip
pip install boto3 requests
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: ${{ env.PRODSEC_TOOLS_ARN }}
aws-region: us-east-1
mask-aws-account-id: true

- name: Install RL Wrapper
shell: bash
run: |
pip install rl-wrapper>=1.0.0 --index-url "https://${{ env.PROD_TOOLS_USER }}:${{ env.PROD_TOOLS_TOKEN }}@a0us.jfrog.io/artifactory/api/pypi/python-local/simple"
pip install rl-wrapper>=1.0.0 --index-url "https://${{ env.PRODSEC_TOOLS_USER }}:${{ env.PRODSEC_TOOLS_TOKEN }}@a0us.jfrog.io/artifactory/api/pypi/python-local/simple"
- name: Run RL Scanner
shell: bash
env:
RLSECURE_LICENSE: ${{ env.RL_SECURE_LICENSE }}
RLSECURE_SITE_KEY: ${{ env.RL_SECURE_SITE_KEY }}
RLSECURE_LICENSE: ${{ env.RLSECURE_LICENSE }}
RLSECURE_SITE_KEY: ${{ env.RLSECURE_SITE_KEY }}
SIGNAL_HANDLER_TOKEN: ${{ env.SIGNAL_HANDLER_TOKEN }}
PYTHONUNBUFFERED: 1
run: |
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,14 @@ jobs:
node-version: 18
artifact-name: 'auth0-react.tgz'
secrets:
RL_SECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
RL_SECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
SIGNAL_HANDLER_TOKEN: ${{ secrets.SIGNAL_HANDLER_TOKEN }}
PROD_TOOLS_USER: ${{ secrets.PRODSEC_TOOLS_USER }}
PROD_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
PRODSEC_TOOLS_USER: ${{ secrets.PRODSEC_TOOLS_USER }}
PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
release:
uses: ./.github/workflows/npm-release.yml
needs: rl-scanner
with:
node-version: 18
require-build: true
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/rl-secure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ on:
required: true
type: string
secrets:
RL_SECURE_LICENSE:
RLSECURE_LICENSE:
required: true
RL_SECURE_SITE_KEY:
RLSECURE_SITE_KEY:
required: true
SIGNAL_HANDLER_TOKEN:
required: true
PROD_TOOLS_USER:
PRODSEC_TOOLS_USER:
required: true
PROD_TOOLS_TOKEN:
PRODSEC_TOOLS_TOKEN:
required: true

jobs:
Expand Down Expand Up @@ -55,11 +55,11 @@ jobs:
repository: "${{ github.repository }}"
commit: "${{ github.sha }}"
env:
RL_SECURE_LICENSE: ${{ secrets.RL_SECURE_LICENSE }}
RL_SECURE_SITE_KEY: ${{ secrets.RL_SECURE_SITE_KEY }}
RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
SIGNAL_HANDLER_TOKEN: ${{ secrets.SIGNAL_HANDLER_TOKEN }}
PROD_TOOLS_USER: ${{ secrets.PROD_TOOLS_USER }}
PROD_TOOLS_TOKEN: ${{ secrets.PROD_TOOLS_TOKEN }}
PRODSEC_TOOLS_USER: ${{ secrets.PRODSEC_TOOLS_USER }}
PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}

- name: Output scan result
run: echo "scan-status=${{ steps.rl-scan-conclusion.outcome }}" >> $GITHUB_ENV

0 comments on commit 3557cf1

Please sign in to comment.