[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 a92c8ad94eefc619cb76eeec6d994cf1eb3462f4..74f7cfc3d0f643488f58f6a7bbcfad8cace0cdf5 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 2bad9f9baac5db65ff54d6b8e860ce52ea7963ba..caf1d17f9ea8204a215571e635d232790353e781 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 0841b00a3a54949f2707293e386fc93264801899..0df33488e765b34e9f0fdf1895a18ff537882414 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