From ba0db9f02568ac10a4f01beaaa2a3f9a1187a825 Mon Sep 17 00:00:00 2001 From: Oriol Date: Thu, 6 Jun 2024 14:25:45 +0200 Subject: [PATCH] chore: Uses PAT instead of GITHUB_TOKEN for issues.yml (#2332) --- .github/workflows/issues.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/issues.yml b/.github/workflows/issues.yml index a4ed0db52c..c02b992f91 100644 --- a/.github/workflows/issues.yml +++ b/.github/workflows/issues.yml @@ -5,16 +5,13 @@ on: issues: types: [opened, reopened, closed] - permissions: - issues: write - contents: read jobs: jira_task: name: Create Jira issue if: github.event.action == 'opened' runs-on: ubuntu-latest - permissions: - issues: write + env: + GITHUB_TOKEN: ${{ secrets.APIX_BOT_PAT }} steps: - name: Create JIRA ticket id: create @@ -74,7 +71,8 @@ name: Reopen JIRA ticket if: github.event.action == 'reopened' runs-on: ubuntu-latest - permissions: {} + env: + GITHUB_TOKEN: ${{ secrets.APIX_BOT_PAT }} steps: - name: Reopened JIRA ticket if exists run: | @@ -123,6 +121,8 @@ name: Close JIRA ticket if: github.event.action == 'closed' runs-on: ubuntu-latest + env: + GITHUB_TOKEN: ${{ secrets.APIX_BOT_PAT }} steps: - name: Close JIRA ticket if exists run: |