]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Update FastAPI People token (#9844)
authorSebastián Ramírez <tiangolo@gmail.com>
Sun, 9 Jul 2023 15:44:40 +0000 (17:44 +0200)
committerGitHub <noreply@github.com>
Sun, 9 Jul 2023 15:44:40 +0000 (17:44 +0200)
.github/actions/people/action.yml
.github/actions/people/app/main.py
.github/workflows/people.yml

index 16bc8cdcb8d7b6652e0ce62b058d1d4dcbe8d392..71745b8747a746944d0727721ef847db44c162bb 100644 (file)
@@ -3,10 +3,7 @@ description: "Generate the data for the FastAPI People page"
 author: "Sebastián Ramírez <tiangolo@gmail.com>"
 inputs:
   token:
-    description: 'User token, to read the GitHub API. Can be passed in using {{ secrets.ACTION_TOKEN }}'
-    required: true
-  standard_token:
-    description: 'Default GitHub Action token, used for the PR. Can be passed in using {{ secrets.GITHUB_TOKEN }}'
+    description: 'User token, to read the GitHub API. Can be passed in using {{ secrets.FASTAPI_PEOPLE }}'
     required: true
 runs:
   using: 'docker'
index 2bf59f25e62f807d9af524d3cafa7ebc8d4857a0..b11e3456db58aa0e4ce57a4b6227d7e4a558ebf3 100644 (file)
@@ -352,7 +352,6 @@ class SponsorsResponse(BaseModel):
 
 class Settings(BaseSettings):
     input_token: SecretStr
-    input_standard_token: SecretStr
     github_repository: str
     httpx_timeout: int = 30
 
@@ -609,7 +608,7 @@ if __name__ == "__main__":
     logging.basicConfig(level=logging.INFO)
     settings = Settings()
     logging.info(f"Using config: {settings.json()}")
-    g = Github(settings.input_standard_token.get_secret_value())
+    g = Github(settings.input_token.get_secret_value())
     repo = g.get_repo(settings.github_repository)
     question_commentors, question_last_month_commentors, question_authors = get_experts(
         settings=settings
index 15ea464a1f587ff2498b93ca95241b4f5867451c..dac526a6c7f522c5f1b0a9a1ca8c242db39b7759 100644 (file)
@@ -27,5 +27,4 @@ jobs:
           limit-access-to-actor: true
       - uses: ./.github/actions/people
         with:
-          token: ${{ secrets.ACTIONS_TOKEN }}
-          standard_token: ${{ secrets.FASTAPI_PEOPLE }}
+          token: ${{ secrets.FASTAPI_PEOPLE }}