Skip to content

Commit

Permalink
chore: Uses PAT instead of GITHUB_TOKEN for issues.yml (#2332)
Browse files Browse the repository at this point in the history
  • Loading branch information
oarbusi authored Jun 6, 2024
1 parent fc0cdcc commit ba0db9f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down

0 comments on commit ba0db9f

Please sign in to comment.