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