Skip to content

Warning or error for Trusted Publisher users when GitHub Environment claim is included but not checked #528

Warning or error for Trusted Publisher users when GitHub Environment claim is included but not checked

Warning or error for Trusted Publisher users when GitHub Environment claim is included but not checked #528

Workflow file for this run

name: Add comment & close
on:
issues:
types:
- labeled
jobs:
add-comment:
if: github.event.label.name == 'not-this-repo'
runs-on: ubuntu-24.04
permissions:
issues: write
steps:
- name: Add comment
run: gh issue close "$NUMBER" --reason "not planned" --comment "$BODY"
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: ${{ github.event.issue.number }}
BODY: >
Hi, this issue tracker is for issues with the codebase behind pypi.org itself,
not the projects hosted on PyPI.
You should report this issue to the tracker for the project in question instead.