From 0669f46f1912d56a64e864f931e9a119927f7abd Mon Sep 17 00:00:00 2001 From: mikhail-klimko Date: Mon, 8 Jul 2024 15:25:22 +0300 Subject: [PATCH] fix: release-drafter and validate-pr-title permissions --- .../workflows/{draft-release.yaml => create-release.yaml} | 3 +++ .github/workflows/validate-pr-title.yaml | 6 ++++-- 2 files changed, 7 insertions(+), 2 deletions(-) rename .github/workflows/{draft-release.yaml => create-release.yaml} (92%) diff --git a/.github/workflows/draft-release.yaml b/.github/workflows/create-release.yaml similarity index 92% rename from .github/workflows/draft-release.yaml rename to .github/workflows/create-release.yaml index 10c6f4b..7c4b7ea 100644 --- a/.github/workflows/draft-release.yaml +++ b/.github/workflows/create-release.yaml @@ -10,6 +10,9 @@ jobs: create_release: name: Create Release runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write steps: - name: Checkout uses: actions/checkout@v3 diff --git a/.github/workflows/validate-pr-title.yaml b/.github/workflows/validate-pr-title.yaml index 15ab72c..fc9f26d 100644 --- a/.github/workflows/validate-pr-title.yaml +++ b/.github/workflows/validate-pr-title.yaml @@ -12,10 +12,12 @@ on: jobs: validate-pr-title: runs-on: ubuntu-latest + permissions: + pull-requests: read + statuses: write steps: - - uses: amannn/action-semantic-pull-request@v5.4.0 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - requireScope: false \ No newline at end of file + requireScope: false