Skip to content

Commit 2361b3b

Browse files
authored
ci: リリース更新に contents: write を明示する (#103)
> GITHUB_TOKEN のデフォルト権限を read-only にする準備として、write が必 > 要な job に permissions を明示します。 > > - GitHub Release へアップロードまたは release notes 更新を行う job に > `contents: write` を明示します。 > - `PRODUCTION_GITHUB_TOKEN` 用途は対象外として触っていません。 > - public resource の read 用 permissions は追加していません。 > > ref VOICEVOX/voicevox_project#93
1 parent 330077b commit 2361b3b

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ jobs:
268268
ARCH_SUFFIX: "${{ (matrix.linux_cross_arch != '' && '-') || '' }}${{ (matrix.linux_cross_arch != '' && matrix.linux_cross_arch) || '' }}"
269269

270270
runs-on: ${{ matrix.os }}
271+
permissions:
272+
contents: write
271273
environment: ${{ inputs.target == 'voicevox_onnxruntime' && 'production' || '' }}
272274

273275
steps:
@@ -705,6 +707,8 @@ jobs:
705707
build-xcframework:
706708
needs: build-onnxruntime
707709
runs-on: macos-14
710+
permissions:
711+
contents: write
708712
outputs:
709713
release-name: ${{ steps.gen-envs.outputs.release-name }}
710714
steps:
@@ -837,6 +841,8 @@ jobs:
837841
build-spec-table:
838842
needs: [build-onnxruntime, build-xcframework, get-terms]
839843
runs-on: ubuntu-22.04
844+
permissions:
845+
contents: write
840846
steps:
841847
- name: Download specifications
842848
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0

0 commit comments

Comments
 (0)