Skip to content

Commit

Permalink
github-action(label): use PAT instead of github-bot (elastic#211)
Browse files Browse the repository at this point in the history
GitHub does not send any events if the actor is github-bot
  • Loading branch information
v1v authored Feb 2, 2024
1 parent e639c21 commit 31c8fb2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/label-elastic-pull-requests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
types: [opened]

jobs:
triage:
safe-to-test:
runs-on: ubuntu-latest
steps:
- name: Check team membership for user
Expand All @@ -19,10 +19,11 @@ jobs:
uses: actions/github-script@v7
if: steps.checkUserMember.outputs.isTeamMember == 'true'
with:
github-token: ${{ secrets.APM_TECH_USER_TOKEN }}
script: |
github.rest.issues.addLabels({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
labels: ["safe-to-test"]
})
})

0 comments on commit 31c8fb2

Please sign in to comment.