Revert "remove permission control in workflow"

This reverts commit e9c44e0d07.
This commit is contained in:
Nova 2025-07-27 10:08:43 +03:30
parent fb09632b69
commit 66e9cfa20b

View File

@ -10,6 +10,8 @@ on:
required: false required: false
jobs: jobs:
build-go: build-go:
permissions:
contents: read
strategy: strategy:
matrix: matrix:
include: include:
@ -87,6 +89,8 @@ jobs:
name: Throne-${{ github.sha }}-Common-${{ matrix.cross_os }}-${{ matrix.cross_arch }} name: Throne-${{ github.sha }}-Common-${{ matrix.cross_os }}-${{ matrix.cross_arch }}
path: artifacts.tgz path: artifacts.tgz
build-cpp: build-cpp:
permissions:
contents: read
needs: needs:
- build-go - build-go
strategy: strategy:
@ -222,6 +226,9 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
needs: needs:
- build-cpp - build-cpp
permissions:
contents: write
actions: read
env: env:
INPUT_VERSION: ${{ github.event.inputs.tag }} INPUT_VERSION: ${{ github.event.inputs.tag }}
steps: steps: