From bef837559d4f2eda9864a99320baed647afd48cd Mon Sep 17 00:00:00 2001 From: "Azzam S.A" Date: Wed, 17 Apr 2024 09:10:25 +0700 Subject: [PATCH] ci: don't use global permission --- .github/workflows/release.yml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bfe227a..8460401 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,14 +1,10 @@ name: Release -# The worklow won't work without this permissions -# https://github.com/softprops/action-gh-release?tab=readme-ov-file#permissions -permissions: - contents: write - on: push: tags: - 'v*' + env: PROJECT_NAME: neolite @@ -16,8 +12,11 @@ jobs: create-github-release: name: Create GitHub Release runs-on: ubuntu-22.04 + # The worklow won't work without this permissions + # https://github.com/softprops/action-gh-release?tab=readme-ov-file#permissions + permissions: + contents: write steps: - - name: Checkout uses: actions/checkout@v4 with: @@ -59,6 +58,8 @@ jobs: publish: name: Publish runs-on: ubuntu-22.04 + permissions: + contents: write steps: - name: Checkout source code uses: actions/checkout@v4