Browse Source

👷 Update GitHub Actions token usage (#11914)

pull/11917/head
Sebastián Ramírez 8 months ago
committed by GitHub
parent
commit
9e42833445
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      .github/workflows/deploy-docs.yml
  2. 2
      .github/workflows/issue-manager.yml
  3. 2
      .github/workflows/label-approved.yml
  4. 2
      .github/workflows/notify-translations.yml
  5. 4
      .github/workflows/smokeshow.yml

4
.github/workflows/deploy-docs.yml

@ -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 }}"

2
.github/workflows/issue-manager.yml

@ -25,7 +25,7 @@ jobs:
run: echo "$GITHUB_CONTEXT"
- uses: tiangolo/[email protected]
with:
token: ${{ secrets.FASTAPI_ISSUE_MANAGER }}
token: ${{ secrets.GITHUB_TOKEN }}
config: >
{
"answered": {

2
.github/workflows/label-approved.yml

@ -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":

2
.github/workflows/notify-translations.yml

@ -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 }}

4
.github/workflows/smokeshow.yml

@ -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 }}

Loading…
Cancel
Save