summaryrefslogtreecommitdiff
path: root/.github/workflows/repo-labeler.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/repo-labeler.yml')
-rw-r--r--.github/workflows/repo-labeler.yml25
1 files changed, 25 insertions, 0 deletions
diff --git a/.github/workflows/repo-labeler.yml b/.github/workflows/repo-labeler.yml
new file mode 100644
index 0000000000..3d5e84a94a
--- /dev/null
+++ b/.github/workflows/repo-labeler.yml
@@ -0,0 +1,25 @@
+name: "Labeler"
+
+on:
+ pull_request_target:
+ types: [opened, synchronize, reopened]
+
+permissions:
+ contents: read
+
+jobs:
+ label:
+ runs-on: ubuntu-latest
+ permissions:
+ contents: read
+ pull-requests: write
+
+ steps:
+ - name: Harden Runner
+ uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
+ with:
+ egress-policy: audit
+
+ - uses: actions/labeler@v6
+ with:
+ repo-token: "${{ secrets.GITHUB_TOKEN }}"