[Actions] Update token to fine-grained (#5716)
authorJay Cho <chojoong@gmail.com>
Mon, 6 Nov 2023 13:56:12 +0000 (22:56 +0900)
committerGitHub <noreply@github.com>
Mon, 6 Nov 2023 13:56:12 +0000 (22:56 +0900)
.github/workflows/build-branches.yml
.github/workflows/nightly-release.yml
.github/workflows/postback-pull-request.yml

index a92c8ad..74f7cfc 100644 (file)
@@ -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
index 2bad9f9..caf1d17 100644 (file)
@@ -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,
index 0841b00..0df3348 100644 (file)
@@ -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