llvm-capstone/.github/workflows/new-issues.yml
Joyce Brum 829b8912cd feat: harden permissions for all github workflows
Signed-off-by: Joyce Brum <joycebrum@google.com>

Reviewed By: tstellar

Differential Revision: https://reviews.llvm.org/D144119
2023-03-03 21:34:27 -08:00

21 lines
476 B
YAML

name: Labeling new issues
on:
issues:
types: ['opened']
permissions:
contents: read
jobs:
automate-issues-labels:
permissions:
issues: write # for andymckay/labeler to label issues
pull-requests: write # for andymckay/labeler to label PRs
runs-on: ubuntu-latest
if: github.repository == 'llvm/llvm-project'
steps:
- uses: andymckay/labeler@1.0.4
with:
add-labels: 'new issue'
ignore-if-labeled: true