Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 0 additions & 71 deletions .github/actions/rl-scanner/action.yml

This file was deleted.

61 changes: 45 additions & 16 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,60 @@ name: Publish Release
on:
workflow_dispatch:

### TODO: Replace instances of './.github/actions/' with reference to the `dx-sdk-actions` repo is made public and this file is transferred over
### TODO: Also remove `get-prerelease`, `get-version`, `release-create`, `tag-create` and `tag-exists` actions from this repo's .github/actions folder once the repo is public.

permissions:
contents: write
id-token: write # Required for trusted publishing to PyPI

jobs:
# rl-scanner:
# uses: ./.github/workflows/rl-scanner.yml
# with:
# python-version: "3.10"
# artifact-name: "auth0-fastapi-api.tgz"
# secrets:
# RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
# RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
# SIGNAL_HANDLER_TOKEN: ${{ secrets.SIGNAL_HANDLER_TOKEN }}
# PRODSEC_TOOLS_USER: ${{ secrets.PRODSEC_TOOLS_USER }}
# PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
# PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }}
rl-scanner:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0
fetch-tags: true

- name: Configure Python
uses: actions/setup-python@v6
with:
python-version: "3.12"

- name: Build artifact
run: |
pip install --user --upgrade pip
pip install --user pipx
pipx ensurepath
pipx install poetry==2.2.1
poetry config virtualenvs.in-project true
poetry install --with dev
poetry build
tar -czvf auth0-server-python.tgz *

- name: Get version
id: get_version
uses: ./.github/actions/get-version

- name: Run RL Scanner
uses: auth0/devsecops-tooling/.github/actions/rl-scan@main
with:
artifact-name: "auth0-server-python"
artifact-path: "${{ github.workspace }}/auth0-server-python.tgz"
version: ${{ steps.get_version.outputs.version }}
RLSECURE_LICENSE: ${{ secrets.RLSECURE_LICENSE }}
RLSECURE_SITE_KEY: ${{ secrets.RLSECURE_SITE_KEY }}
SIGNAL_HANDLER_TOKEN: ${{ secrets.SIGNAL_HANDLER_TOKEN }}
SIGNAL_HANDLER_DOMAIN: ${{ secrets.SIGNAL_HANDLER_DOMAIN }}
PRODSEC_TOOLS_ARN: ${{ secrets.PRODSEC_TOOLS_ARN }}
PRODSEC_TOOLS_USER: ${{ secrets.PRODSEC_TOOLS_USER }}
PRODSEC_TOOLS_TOKEN: ${{ secrets.PRODSEC_TOOLS_TOKEN }}
PRODSEC_PYTHON_TOOLS_REPO: ${{ secrets.PRODSEC_PYTHON_TOOLS_REPO }}

publish-pypi:
if: github.event_name == 'workflow_dispatch' || (github.event_name == 'pull_request' && github.event.pull_request.merged && startsWith(github.event.pull_request.head.ref, 'release/'))
name: "PyPI"
runs-on: ubuntu-latest
# needs: rl-scanner
needs: rl-scanner
environment: release

steps:
Expand Down
83 changes: 0 additions & 83 deletions .github/workflows/rl-scanner.yml

This file was deleted.

Loading
Loading