Skip to content

Commit ba0db9f

Browse files
authored
chore: Uses PAT instead of GITHUB_TOKEN for issues.yml (#2332)
1 parent fc0cdcc commit ba0db9f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/issues.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,13 @@
55
on:
66
issues:
77
types: [opened, reopened, closed]
8-
permissions:
9-
issues: write
10-
contents: read
118
jobs:
129
jira_task:
1310
name: Create Jira issue
1411
if: github.event.action == 'opened'
1512
runs-on: ubuntu-latest
16-
permissions:
17-
issues: write
13+
env:
14+
GITHUB_TOKEN: ${{ secrets.APIX_BOT_PAT }}
1815
steps:
1916
- name: Create JIRA ticket
2017
id: create
@@ -74,7 +71,8 @@
7471
name: Reopen JIRA ticket
7572
if: github.event.action == 'reopened'
7673
runs-on: ubuntu-latest
77-
permissions: {}
74+
env:
75+
GITHUB_TOKEN: ${{ secrets.APIX_BOT_PAT }}
7876
steps:
7977
- name: Reopened JIRA ticket if exists
8078
run: |
@@ -123,6 +121,8 @@
123121
name: Close JIRA ticket
124122
if: github.event.action == 'closed'
125123
runs-on: ubuntu-latest
124+
env:
125+
GITHUB_TOKEN: ${{ secrets.APIX_BOT_PAT }}
126126
steps:
127127
- name: Close JIRA ticket if exists
128128
run: |

0 commit comments

Comments
 (0)