From bfaab15aa03c5464b393cdb15df6a081c5c82141 Mon Sep 17 00:00:00 2001 From: annie-mac Date: Wed, 28 Feb 2024 12:32:10 -0800 Subject: [PATCH 1/3] fix --- .github/workflows/release.yml | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8c46c249..25b9871d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,19 +6,19 @@ on: - v* name: Build and create release - +permission: + actions: write + contents: read + deployments: write + packages: write + pull-requests: write + security-events: write + jobs: build: name: Build and upload release binary if: ${{ startsWith(github.ref, 'refs/tags/v')}} runs-on: ubuntu-latest - permissions: - actions: write - contents: read - deployments: write - packages: write - pull-requests: write - security-events: write steps: - name: Checkout code uses: actions/checkout@v2 From caa87dee0f279a32564dd175718405572f6a0d04 Mon Sep 17 00:00:00 2001 From: annie-mac Date: Wed, 28 Feb 2024 12:33:39 -0800 Subject: [PATCH 2/3] fix --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 25b9871d..047a7274 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,14 +6,14 @@ on: - v* name: Build and create release -permission: +permissions: actions: write contents: read deployments: write packages: write pull-requests: write security-events: write - + jobs: build: name: Build and upload release binary From ddd4ac6785e98e877d281067ddd0c575a8861fec Mon Sep 17 00:00:00 2001 From: annie-mac Date: Wed, 28 Feb 2024 12:36:27 -0800 Subject: [PATCH 3/3] update --- .github/workflows/release.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 047a7274..af35b7ca 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,12 +7,19 @@ on: name: Build and create release permissions: - actions: write - contents: read - deployments: write - packages: write - pull-requests: write - security-events: write + actions: write + checks: write + contents: write + deployments: write + id-token: write + issues: write + discussions: write + packages: write + pages: write + pull-requests: write + repository-projects: write + security-events: write + statuses: write jobs: build: