diff --git a/.github/workflows/labeler.yml b/.github/workflows/labeler.yml index a340145473..2f20d430bc 100644 --- a/.github/workflows/labeler.yml +++ b/.github/workflows/labeler.yml @@ -23,13 +23,16 @@ on: types: [ synchronize, opened, reopened, edited ] jobs: - process: + labeler: name: Module Labeler runs-on: ubuntu-latest + permissions: + contents: write + pull-requests: write steps: - uses: actions/checkout@v4 - name: Assign GitHub labels - uses: actions/labeler@v4 + uses: actions/labeler@v5 with: repo-token: ${{ secrets.GITHUB_TOKEN }} configuration-path: .github/workflows/module_labeler_conf.yml diff --git a/.github/workflows/module_labeler_conf.yml b/.github/workflows/module_labeler_conf.yml index 5994abb568..17932cf8a9 100644 --- a/.github/workflows/module_labeler_conf.yml +++ b/.github/workflows/module_labeler_conf.yml @@ -15,9 +15,6 @@ # specific language governing permissions and limitations # under the License. --- -permissions: - contents: 'write' - pull-requests: 'write' github: - .github/**/*