From 808e47031d6208b4e3337cafb4de49967be6fd2a Mon Sep 17 00:00:00 2001 From: "Andreas Koepf (aider)" Date: Sat, 1 Feb 2025 02:28:06 +0100 Subject: [PATCH] chore: Update GitHub workflow permissions for consistent access --- .github/workflows/pre-commit.yml | 3 ++- .github/workflows/tests.yml | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml index a5ff0cca..4aec0f07 100644 --- a/.github/workflows/pre-commit.yml +++ b/.github/workflows/pre-commit.yml @@ -8,8 +8,9 @@ jobs: pre-commit: runs-on: ubuntu-latest permissions: - issues: write contents: read + issues: write + pull-requests: write steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v4 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 50b64d5d..157c993d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -9,6 +9,10 @@ on: jobs: test: runs-on: ubuntu-latest + permissions: + contents: read + issues: write + pull-requests: write strategy: matrix: python-version: ["3.11", "3.12"]