From ad21309cc5ed2d40c1d4ce469483566f953bbea5 Mon Sep 17 00:00:00 2001 From: rancher-security-bot <119513217+rancher-security-bot@users.noreply.github.com> Date: Tue, 4 Jul 2023 06:36:46 +0000 Subject: [PATCH] Replace 3rd party action with native CLI --- .github/workflows/label-all-new-issues.yaml | 24 ++++++++++----------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/label-all-new-issues.yaml b/.github/workflows/label-all-new-issues.yaml index 3028a1a..e36df50 100644 --- a/.github/workflows/label-all-new-issues.yaml +++ b/.github/workflows/label-all-new-issues.yaml @@ -1,22 +1,20 @@ -# This workflow uses actions that are not certified by GitHub. -# They are provided by a third-party and are governed by -# separate terms of service, privacy policy, and support -# documentation. - -name: Label issues +name: Label issue on: issues: types: - opened - reopened + +permissions: + issues: write + jobs: label_issues: runs-on: ubuntu-latest - permissions: - issues: write steps: - - name: Label issues - uses: andymckay/labeler@e6c4322d0397f3240f0e7e30a33b5c5df2d39e90 - with: - add-labels: "team/area3" - repo-token: ${{ secrets.GITHUB_TOKEN }} + - name: Label issue + id: run + run: gh issue edit -R ${GITHUB_REPOSITORY} --add-label ${LABEL} ${{ github.event.issue.number }} + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + LABEL: "team/area3"