From 2ab8c8e0cd30bd40cd6dbddb35411a4fe572a067 Mon Sep 17 00:00:00 2001 From: Jay Cho Date: Mon, 6 Nov 2023 22:56:12 +0900 Subject: [PATCH] [Actions] Update token to fine-grained (#5716) --- .github/workflows/build-branches.yml | 2 +- .github/workflows/nightly-release.yml | 2 +- .github/workflows/postback-pull-request.yml | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build-branches.yml b/.github/workflows/build-branches.yml index a92c8ad..74f7cfc 100644 --- a/.github/workflows/build-branches.yml +++ b/.github/workflows/build-branches.yml @@ -44,7 +44,7 @@ jobs: uses: actions/checkout@v3 with: repository: TizenAPI/tizenfx-api-specs - token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }} + token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }} path: .apispec - name: Push to APISpec diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 2bad9f9..caf1d17 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -36,7 +36,7 @@ jobs: TARGETS: ${{ steps.find-targets.outputs.targets }} WORKFLOW_NAME: 'Deploy Packages' with: - github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }} + github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }} script: | var resp = await github.request('GET /repos/{owner}/{repo}/actions/workflows', { owner: context.repo.owner, diff --git a/.github/workflows/postback-pull-request.yml b/.github/workflows/postback-pull-request.yml index 0841b00..0df3348 100644 --- a/.github/workflows/postback-pull-request.yml +++ b/.github/workflows/postback-pull-request.yml @@ -14,7 +14,7 @@ jobs: - name: Download Artifacts from Build uses: TizenAPI/tizenfx-build-actions/download-workflow-artifacts@master with: - token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }} + token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }} run-id: ${{ github.event.workflow_run.id }} name: reports path: Artifacts @@ -45,7 +45,7 @@ jobs: env: PR_NUMBER: ${{ steps.pull_request.outputs.number }} with: - github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }} + github-token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }} script: | const fs = require('fs'); const json = fs.readFileSync('Artifacts/errors.json', 'utf8'); @@ -61,6 +61,6 @@ jobs: if: ${{ github.event.workflow_run.conclusion == 'success' }} uses: TizenAPI/tizenfx-build-actions/apidb-report@master with: - token: ${{ secrets.TIZENAPI_GITHUB_TOKEN }} + token: ${{ secrets.TIZENAPI_GITHUB_TOKEN_FINEGRAINED }} issue-number: ${{ steps.pull_request.outputs.number }} path: Artifacts/api-comp.json -- 2.7.4