diff --git a/.github/workflows/verify-catalog.yml b/.github/workflows/verify-catalog.yml index b85b42a..c130c58 100644 --- a/.github/workflows/verify-catalog.yml +++ b/.github/workflows/verify-catalog.yml @@ -30,6 +30,8 @@ jobs: GH_TOKEN: ${{ github.token }} CATALOG_PR: ${{ github.event.client_payload.pull_request_number }} SOURCE_PR: ${{ github.event.client_payload.source_pull_request_number }} + RUMBLE_MODERATOR_LOGIN: ${{ vars.RUMBLE_MODERATOR_LOGIN }} + RUMBLE_PUBLISHER_LOGIN: ${{ vars.RUMBLE_PUBLISHER_LOGIN }} run: | set -euo pipefail [[ "$CATALOG_PR" =~ ^[0-9]+$ && "$SOURCE_PR" =~ ^[0-9]+$ ]] diff --git a/moderation/verify_catalog.py b/moderation/verify_catalog.py index 871d975..9a7577b 100644 --- a/moderation/verify_catalog.py +++ b/moderation/verify_catalog.py @@ -17,8 +17,8 @@ from scripts.validate_bot import ValidationError, bot_directories, read_json, resolve_teams, validate_bot CATALOG_FILES = {"bots/index.json", "bots/owners.json"} -APP_LOGIN = "tank-royale-rumble-moderator[bot]" -PUBLISHER_LOGIN = "tank-royale-rumble-publisher[bot]" +APP_LOGIN = os.environ.get("RUMBLE_MODERATOR_LOGIN") or "tank-royale-rumble-moderator[bot]" +PUBLISHER_LOGIN = os.environ.get("RUMBLE_PUBLISHER_LOGIN") or "tank-royale-rumble-publisher[bot]" class VerificationError(Exception):