Skip to content

Commit

Permalink
Fix: どうも GITHUB_TOKEN だと権限が足りないようなので PAT に切り替え
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukumijima committed Nov 8, 2024
1 parent 6f74521 commit c71dea4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,6 @@ jobs:
cache-version: v2
# GNUコマンド
sed: ${{ startsWith(matrix.os, 'macos-') && 'gsed' || 'sed' }}
# secrets.GITHUB_TOKEN の権限を拡張
permissions:
contents: read
packages: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -221,7 +217,7 @@ jobs:
version: ${{ env.AIVISSPEECH_ENGINE_VERSION }}
dest: ${{ github.workspace }}/AivisSpeech-Engine
target: ${{ matrix.aivisspeech_engine_asset_name }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.ENGINE_DOWNLOADER_TOKEN }}

- name: Merge AivisSpeech Engine into prepackage/
if: startsWith(matrix.artifact_name, 'windows-') || startsWith(matrix.artifact_name, 'linux-')
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,10 +88,6 @@ jobs:
e2e-test:
runs-on: ${{ matrix.os }}
needs: [config]
# secrets.GITHUB_TOKEN の権限を拡張
permissions:
contents: read
packages: read
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -129,7 +125,7 @@ jobs:
version: ${{ env.AIVISSPEECH_ENGINE_VERSION }}
dest: ${{ github.workspace }}/AivisSpeech-Engine
target: ${{ matrix.aivisspeech_engine_asset_name }}
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.ENGINE_DOWNLOADER_TOKEN }}

- name: Setup
run: |
Expand Down

0 comments on commit c71dea4

Please sign in to comment.