From d143cb4cca9d227be20c1956c29f8c620f6987b6 Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Wed, 25 Jan 2023 19:39:45 +0000 Subject: [PATCH 1/2] gha: update to latest actions/labeler --- .github/workflows/pr-labeler.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index a0c044257b6c3..738a47699fe0a 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -8,6 +8,6 @@ jobs: triage: runs-on: ubuntu-latest steps: - - uses: actions/labeler@v3 + - uses: actions/labeler@v4 with: repo-token: ${{ secrets.GITHUB_TOKEN }} From e2ed9c6e22ff3ec71cfdd8f473eaa967ab164c50 Mon Sep 17 00:00:00 2001 From: Andrew Hsu Date: Wed, 25 Jan 2023 19:40:52 +0000 Subject: [PATCH 2/2] gha: set min required access for actions/labeler according to docs --- .github/workflows/pr-labeler.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/pr-labeler.yml b/.github/workflows/pr-labeler.yml index 738a47699fe0a..00c36f0af66f1 100644 --- a/.github/workflows/pr-labeler.yml +++ b/.github/workflows/pr-labeler.yml @@ -6,6 +6,9 @@ on: jobs: triage: + permissions: + contents: read + pull-requests: write runs-on: ubuntu-latest steps: - uses: actions/labeler@v4