From 971780531ed08d9921fc3cb292311e0bdf311b78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Bidoul?= Date: Sat, 29 Nov 2025 21:25:05 +0100 Subject: [PATCH] Harden ci workflow --- .github/workflows/ci.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 441d067..959574a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,12 +8,16 @@ on: jobs: test: + permissions: + contents: read runs-on: ubuntu-latest strategy: matrix: python-version: ["3.13"] steps: - uses: actions/checkout@v6 + with: + persist-credentials: false - uses: actions/setup-python@v6 with: python-version: ${{ matrix.python-version }} @@ -27,6 +31,9 @@ jobs: run: mypy ./src/runboat ./tests - uses: codecov/codecov-action@v5 build-image: + permissions: + contents: read + packages: write runs-on: ubuntu-latest needs: - test