From dbee7fde7dfa81318e1b49418a413cb6f94576e0 Mon Sep 17 00:00:00 2001 From: Yurii Motov Date: Thu, 9 Apr 2026 08:36:46 +0200 Subject: [PATCH] Resolve `contributors.yml` --- .github/workflows/contributors.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/contributors.yml b/.github/workflows/contributors.yml index 97483331f1..785ecea939 100644 --- a/.github/workflows/contributors.yml +++ b/.github/workflows/contributors.yml @@ -10,6 +10,8 @@ on: required: false default: "false" +permissions: {} + jobs: job: if: github.repository_owner == 'fastapi' @@ -22,6 +24,8 @@ jobs: GITHUB_CONTEXT: ${{ toJson(github) }} run: echo "$GITHUB_CONTEXT" - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + persist-credentials: true # Required for `git push` in `contributors.py` - name: Set up Python uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: @@ -29,6 +33,7 @@ jobs: - name: Setup uv uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0 with: + version: "0.11.4" enable-cache: true cache-dependency-glob: | pyproject.toml @@ -42,8 +47,8 @@ jobs: with: limit-access-to-actor: true env: - GITHUB_TOKEN: ${{ secrets.FASTAPI_PR_TOKEN }} + GITHUB_TOKEN: ${{ secrets.FASTAPI_PR_TOKEN }} # zizmor: ignore[secrets-outside-env] - name: FastAPI People Contributors run: uv run ./scripts/contributors.py env: - GITHUB_TOKEN: ${{ secrets.FASTAPI_PR_TOKEN }} + GITHUB_TOKEN: ${{ secrets.FASTAPI_PR_TOKEN }} # zizmor: ignore[secrets-outside-env]