From 43dccdda9d3ec5fa803e0ccde3e1fa3f44be0175 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Wed, 1 Jan 2025 22:03:57 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Update=20CI,=20permissions,=20de?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/contributors.yml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index e3684b134..076a85679 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -19,18 +19,15 @@ jobs: job: if: github.repository_owner == 'fastapi' runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write steps: - name: Dump GitHub context env: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@v4 - # Allow debugging with tmate - - name: Setup tmate session - uses: mxschmitt/action-tmate@v3 - if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }} - with: - limit-access-to-actor: true - name: Set up Python uses: actions/setup-python@v5 with: @@ -45,6 +42,13 @@ jobs: pyproject.toml - name: Install Dependencies run: uv pip install -r requirements-github-actions.txt + # Allow debugging with tmate + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + # TODO: fix this + # if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }} + with: + limit-access-to-actor: true - name: FastAPI People Contributors run: python ./scripts/contributors.py env: