From 138f2296f6abea51cd2ba44ff029ad21092211c6 Mon Sep 17 00:00:00 2001 From: Archie Jaskowicz Date: Fri, 22 Sep 2023 10:50:41 +0100 Subject: [PATCH 1/2] feat: add labeler.yml --- .github/labeler.yml | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .github/labeler.yml diff --git a/.github/labeler.yml b/.github/labeler.yml new file mode 100644 index 0000000000..34cb5824bf --- /dev/null +++ b/.github/labeler.yml @@ -0,0 +1,5 @@ +documentation: +- '**Doxyfile' +- '**docpages/**' +- '**/*.h' +- '**/documentation.yml' From 906b0111101463e404749c2b9a43dfe65d4dc9b3 Mon Sep 17 00:00:00 2001 From: Archie Jaskowicz Date: Fri, 22 Sep 2023 10:51:54 +0100 Subject: [PATCH 2/2] feat: added labeler.yml into workflows. --- .github/workflows/labeler.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/labeler.yml diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml new file mode 100644 index 0000000000..2a70c1b9ac --- /dev/null +++ b/.github/workflows/labeler.yml @@ -0,0 +1,22 @@ +name: "Pull Request Labeler" +on: +- pull_request_target + +permissions: + contents: read + +jobs: + triage: + permissions: + contents: read + pull-requests: write + runs-on: ubuntu-latest + steps: + - name: Harden Runner + uses: step-security/harden-runner@8ca2b8b2ece13480cda6dacd3511b49857a23c09 # v2.5.1 + with: + egress-policy: audit + + - uses: actions/labeler@ac9175f8a1f3625fd0d4fb234536d26811351594 # v4.3.0 + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}