|
| 1 | +name: Test RL Integration |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + branches: [main] |
| 6 | + workflow_dispatch: |
| 7 | + |
| 8 | +jobs: |
| 9 | + test-rl-scanner: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v5 |
| 14 | + with: |
| 15 | + fetch-depth: 0 |
| 16 | + fetch-tags: true |
| 17 | + |
| 18 | + - name: Configure Python |
| 19 | + uses: actions/setup-python@v6 |
| 20 | + with: |
| 21 | + python-version: "3.10" |
| 22 | + |
| 23 | + - name: Configure dependencies |
| 24 | + run: | |
| 25 | + pip install --user --upgrade pip |
| 26 | + pip install --user pipx |
| 27 | + pipx ensurepath |
| 28 | + pipx install poetry==1.4.2 |
| 29 | + poetry config virtualenvs.in-project true |
| 30 | + poetry install --with dev |
| 31 | + poetry self add "poetry-dynamic-versioning[plugin]==1.1.1" |
| 32 | +
|
| 33 | + - name: Build release |
| 34 | + run: | |
| 35 | + poetry build |
| 36 | +
|
| 37 | + - name: Create tgz build artifact |
| 38 | + run: | |
| 39 | + tar -czvf auth0-server-python.tgz * |
| 40 | +
|
| 41 | + - name: Get Artifact Version |
| 42 | + id: get_version |
| 43 | + uses: ./.github/actions/get-version |
| 44 | + |
| 45 | + - name: Test RL Scanner Action |
| 46 | + id: rl-scan-test |
| 47 | + uses: ./.github/actions/rl-scanner |
| 48 | + continue-on-error: true |
| 49 | + with: |
| 50 | + artifact-path: "$(pwd)/auth0-server-python.tgz" |
| 51 | + version: "${{ steps.get_version.outputs.version }}" |
| 52 | + env: |
| 53 | + RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }} |
| 54 | + RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }} |
| 55 | + SIGNAL_HANDLER_TOKEN: ${{ secrets.SIGNAL_HANDLER_TOKEN }} |
| 56 | + PRODSEC_TOOLS_USER: ${{ secrets.PRODSEC_TOOLS_USER }} |
| 57 | + PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }} |
| 58 | + PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }} |
| 59 | + |
| 60 | + - name: Output test result |
| 61 | + run: | |
| 62 | + echo "RL Scanner test completed" |
| 63 | + echo "Status: ${{ steps.rl-scan-test.outcome }}" |
| 64 | + echo "Ready for production use in publish workflow" |
0 commit comments