]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Update GitHub Actions token usage (#11914)
authorSebastián Ramírez <tiangolo@gmail.com>
Mon, 29 Jul 2024 18:12:13 +0000 (13:12 -0500)
committerGitHub <noreply@github.com>
Mon, 29 Jul 2024 18:12:13 +0000 (13:12 -0500)
.github/workflows/deploy-docs.yml
.github/workflows/issue-manager.yml
.github/workflows/label-approved.yml
.github/workflows/notify-translations.yml
.github/workflows/smokeshow.yml

index dd54608d93d185ea6932b1bdd1609a53568d16b8..d8f18ff61ce75d2e33ba39165a3977f907f4882b 100644 (file)
@@ -24,7 +24,7 @@ jobs:
           path: ./site/
           pattern: docs-site-*
           merge-multiple: true
-          github-token: ${{ secrets.FASTAPI_PREVIEW_DOCS_DOWNLOAD_ARTIFACTS }}
+          github-token: ${{ secrets.GITHUB_TOKEN }}
           run-id: ${{ github.event.workflow_run.id }}
       - name: Deploy to Cloudflare Pages
         # hashFiles returns an empty string if there are no files
@@ -42,5 +42,5 @@ jobs:
         if: steps.deploy.outputs.url != ''
         uses: ./.github/actions/comment-docs-preview-in-pr
         with:
-          token: ${{ secrets.FASTAPI_PREVIEW_DOCS_COMMENT_DEPLOY }}
+          token: ${{ secrets.GITHUB_TOKEN }}
           deploy_url: "${{ steps.deploy.outputs.url }}"
index 0f564d7218e352498741441ccc564ee958d1d2ae..bd0113dc7c2c1ef852a727939eac50ea3ef6df62 100644 (file)
@@ -25,7 +25,7 @@ jobs:
         run: echo "$GITHUB_CONTEXT"
       - uses: tiangolo/issue-manager@0.5.0
         with:
-          token: ${{ secrets.FASTAPI_ISSUE_MANAGER }}
+          token: ${{ secrets.GITHUB_TOKEN }}
           config: >
             {
               "answered": {
index 51be2413d68b41a24ff92f843289d5ab8ed4ddcc..417e19dad75c9f5863989719bdd2247e162578b9 100644 (file)
@@ -16,7 +16,7 @@ jobs:
       run: echo "$GITHUB_CONTEXT"
     - uses: docker://tiangolo/label-approved:0.0.4
       with:
-        token: ${{ secrets.FASTAPI_LABEL_APPROVED }}
+        token: ${{ secrets.GITHUB_TOKEN }}
         config: >
           {
             "approved-1":
index c0904ce486105e3d7846242aeed1d641f2030117..b0ebb5a0a767e16583c543e9f2af6387cf9f002e 100644 (file)
@@ -32,4 +32,4 @@ jobs:
           limit-access-to-actor: true
       - uses: ./.github/actions/notify-translations
         with:
-          token: ${{ secrets.FASTAPI_NOTIFY_TRANSLATIONS }}
+          token: ${{ secrets.GITHUB_TOKEN }}
index ffc9c5f8a3361332cebeb15d4d0e63534f0c71d7..d3a975df58ad6b4192c00d8f4a1c7d1fd45640ac 100644 (file)
@@ -28,7 +28,7 @@ jobs:
         with:
           name: coverage-html
           path: htmlcov
-          github-token: ${{ secrets.FASTAPI_SMOKESHOW_DOWNLOAD_ARTIFACTS }}
+          github-token: ${{ secrets.GITHUB_TOKEN }}
           run-id: ${{ github.event.workflow_run.id }}
 
       - run: smokeshow upload htmlcov
@@ -36,6 +36,6 @@ jobs:
           SMOKESHOW_GITHUB_STATUS_DESCRIPTION: Coverage {coverage-percentage}
           SMOKESHOW_GITHUB_COVERAGE_THRESHOLD: 100
           SMOKESHOW_GITHUB_CONTEXT: coverage
-          SMOKESHOW_GITHUB_TOKEN: ${{ secrets.FASTAPI_SMOKESHOW_UPLOAD }}
+          SMOKESHOW_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
           SMOKESHOW_GITHUB_PR_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
           SMOKESHOW_AUTH_KEY: ${{ secrets.SMOKESHOW_AUTH_KEY }}