Tighten GITHUB_TOKEN permissions (#2001)

This commit is contained in:
Michael Telatynski
2024-11-22 10:18:33 +00:00
committed by GitHub
parent bba1fa6d46
commit 1b8ee30693
19 changed files with 38 additions and 0 deletions

View File

@@ -41,9 +41,12 @@ run-name: Element ${{ inputs.mode != 'release' && github.event_name != 'release'
concurrency: ${{ github.workflow }}
env:
R2_BUCKET: ${{ vars.R2_BUCKET }}
permissions: {} # Uses ELEMENT_BOT_TOKEN
jobs:
prepare:
uses: ./.github/workflows/build_prepare.yaml
permissions:
contents: read
with:
config: element.io/${{ inputs.mode || (github.event_name == 'release' && 'release') || 'nightly' }}
version: ${{ (inputs.mode != 'release' && github.event_name != 'release') && 'develop' || '' }}