generic/.github/workflows/pr-labeler.yml

24 lines
637 B
YAML
Raw Normal View History

name: PR Labeler
on:
pull_request_target:
types: [opened]
permissions:
contents: read
jobs:
pr-labeler:
2022-05-01 10:59:57 -04:00
permissions:
pull-requests: write # for TimonVS/pr-labeler-action to add labels in PR
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'skip ci')"
steps:
- name: Harden Runner
uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- uses: TimonVS/pr-labeler-action@8b99f404a073744885d8021d1de4e40c6eaf38e2 # v4.1.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}