|
|
@ -17,7 +17,8 @@ jobs: |
|
|
if: github.repository_owner == 'fastapi' |
|
|
if: github.repository_owner == 'fastapi' |
|
|
runs-on: ubuntu-latest |
|
|
runs-on: ubuntu-latest |
|
|
permissions: |
|
|
permissions: |
|
|
contents: write |
|
|
contents: read |
|
|
|
|
|
id-token: write |
|
|
timeout-minutes: 5 |
|
|
timeout-minutes: 5 |
|
|
steps: |
|
|
steps: |
|
|
- name: Dump GitHub context |
|
|
- name: Dump GitHub context |
|
|
@ -26,7 +27,7 @@ jobs: |
|
|
run: echo "$GITHUB_CONTEXT" |
|
|
run: echo "$GITHUB_CONTEXT" |
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
|
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
|
|
with: |
|
|
with: |
|
|
persist-credentials: true # Required for `git push` in `sponsors.py` |
|
|
persist-credentials: false |
|
|
- name: Set up Python |
|
|
- name: Set up Python |
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 |
|
|
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 |
|
|
with: |
|
|
with: |
|
|
@ -49,8 +50,13 @@ jobs: |
|
|
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }} |
|
|
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }} |
|
|
with: |
|
|
with: |
|
|
limit-access-to-actor: true |
|
|
limit-access-to-actor: true |
|
|
|
|
|
- name: Get PR Submit token |
|
|
|
|
|
id: pr-submit |
|
|
|
|
|
uses: tiangolo/pr-submit@d802fdf59bde80bc3eb8bd3259f4cbeec63de4aa # 0.0.1 |
|
|
- name: FastAPI People Sponsors |
|
|
- name: FastAPI People Sponsors |
|
|
run: uv run ./scripts/sponsors.py |
|
|
run: | |
|
|
|
|
|
gh auth setup-git |
|
|
|
|
|
uv run ./scripts/sponsors.py |
|
|
env: |
|
|
env: |
|
|
SPONSORS_TOKEN: ${{ secrets.SPONSORS_TOKEN }} # zizmor: ignore[secrets-outside-env] |
|
|
SPONSORS_TOKEN: ${{ secrets.SPONSORS_TOKEN }} # zizmor: ignore[secrets-outside-env] |
|
|
PR_TOKEN: ${{ secrets.FASTAPI_PR_TOKEN }} # zizmor: ignore[secrets-outside-env] |
|
|
PR_TOKEN: ${{ steps.pr-submit.outputs.token }} |
|
|
|