From 689f5ea20440c33424647ca3695e9bc9013d9388 Mon Sep 17 00:00:00 2001 From: Suttonfgh Date: Sun, 30 Nov 2025 01:13:34 +0500 Subject: [PATCH 1/2] Add GitHub Actions workflow for Avelio Contract Guard --- .github/workflows/avelio.yml | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/avelio.yml diff --git a/.github/workflows/avelio.yml b/.github/workflows/avelio.yml new file mode 100644 index 0000000000..3022ea88bb --- /dev/null +++ b/.github/workflows/avelio.yml @@ -0,0 +1,35 @@ +name: Avelio Contract Guard + +on: + pull_request: + paths: + - '**/*.py' + - '**/*.yaml' + - '**/*.yml' + +jobs: + avelio: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11' + + - name: Install dependencies + run: pip install pyyaml + + - name: Download Avelio core + run: | + curl -L https://raw.githubusercontent.com/Suttonfgh/Avelio/main/src/avelio_core.py -o avelio_core.py + curl -L https://raw.githubusercontent.com/Suttonfgh/Avelio/main/src/ast_parser.py -o ast_parser.py + curl -L https://raw.githubusercontent.com/Suttonfgh/Avelio/main/src/contract_validator.py -o contract_validator.py + + - name: Run Avelio + run: python avelio_core.py + env: + BASE_DIR: ${{ github.workspace }} From c92a8e6b15a57582de417ba2550777af07d2f4f5 Mon Sep 17 00:00:00 2001 From: Suttonfgh Date: Sun, 30 Nov 2025 01:31:34 +0500 Subject: [PATCH 2/2] test: password -> pass hashed_password -> hashed --- backend/app/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/app/models.py b/backend/app/models.py index 2d060ba0b4..ac92593d3f 100644 --- a/backend/app/models.py +++ b/backend/app/models.py @@ -14,7 +14,7 @@ class UserBase(SQLModel): # Properties to receive via API on creation class UserCreate(UserBase): - password: str = Field(min_length=8, max_length=128) + pass: str = Field(min_length=8, max_length=128) class UserRegister(SQLModel): @@ -42,7 +42,7 @@ class UpdatePassword(SQLModel): # Database model, database table inferred from class name class User(UserBase, table=True): id: uuid.UUID = Field(default_factory=uuid.uuid4, primary_key=True) - hashed_password: str + hashed: str items: list["Item"] = Relationship(back_populates="owner", cascade_delete=True)