Skip to content
This repository has been archived by the owner on Nov 21, 2024. It is now read-only.

Commit

Permalink
Add read-all perm. Generate run_id instead of taking from env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
jpkrajewski committed Jul 15, 2024
1 parent 64db56d commit 45bba1a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/integrationtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ on:
branches:
- dev-uxmt

permissions: read-all

# This ensures only one job runs at a time across all workflows
concurrency:
group: integration_tests
Expand All @@ -18,7 +20,6 @@ jobs:
VMANAGE_USERNAME: ${{ secrets.VMANAGE_USERNAME }}
VMANAGE_PASSWORD: ${{ secrets.VMANAGE_PASSWORD }}
VMANAGE_PORT: ${{ secrets.VMANAGE_PORT }}
RUN_ID: ${{ github.event.pull_request.number }}
CATALYSTWAN_DEVEL: true
defaults:
run:
Expand Down
4 changes: 2 additions & 2 deletions catalystwan/integration_tests/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import unittest
from typing import Union
from uuid import UUID
from uuid import UUID, uuid4

from packaging.version import Version # type: ignore

Expand All @@ -22,7 +22,7 @@

logger = logging.getLogger(__name__)

RUN_ID: int = int(os.environ.get("RUN_ID", 0))
RUN_ID: str = str(uuid4())[:4]


def create_session() -> ManagerSession:
Expand Down

0 comments on commit 45bba1a

Please sign in to comment.