From 1c0653c2376dd22570ae9d4e0add29d8cad29c18 Mon Sep 17 00:00:00 2001 From: Jakob Schlyter Date: Mon, 17 Nov 2025 08:54:15 +0100 Subject: [PATCH] Fix permissions --- .github/workflows/test.yml | 27 +++++++++++++++------------ 1 file changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 15e1559..b1b186d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,6 +6,9 @@ on: branches: - main +permissions: + contents: read + jobs: ruff: runs-on: ubuntu-latest @@ -25,15 +28,15 @@ jobs: - "3.13" - "3.14" steps: - - uses: actions/checkout@v4 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - name: Install the latest version of uv - uses: astral-sh/setup-uv@v5 - with: - version: latest - enable-cache: true - - name: Run pytest - run: uv run make test + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + - name: Install the latest version of uv + uses: astral-sh/setup-uv@v5 + with: + version: latest + enable-cache: true + - name: Run pytest + run: uv run make test