Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/issues-community-autotag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
workflow_call:
secrets:
AUTOLABEL_COMMUNITY_ISSUES:
description: 'Token for checking organization membership and managing labels'
description: 'Token used only to check organization membership (needs read:org). Labels are applied with the built-in github.token so they are attributed to github-actions[bot].'
required: true

env:
Expand Down Expand Up @@ -137,7 +137,8 @@ jobs:
- name: Ensure community label exists
if: steps.check_membership.outputs.is_member == 'false'
env:
GITHUB_TOKEN: ${{ secrets.AUTOLABEL_COMMUNITY_ISSUES }}
# Built-in token: the label is created by github-actions[bot], not by the PAT's owner.
GITHUB_TOKEN: ${{ github.token }}
run: |
set -e

Expand Down Expand Up @@ -201,7 +202,8 @@ jobs:
- name: Apply community label
if: steps.check_membership.outputs.is_member == 'false'
env:
GITHUB_TOKEN: ${{ secrets.AUTOLABEL_COMMUNITY_ISSUES }}
# Built-in token: the label event is attributed to github-actions[bot], not to the PAT's owner.
GITHUB_TOKEN: ${{ github.token }}
run: |
set -e

Expand Down
Loading