From f9d8e99db91825e765c0fc8357f722f481a57cfe Mon Sep 17 00:00:00 2001 From: rancher-security-bot <119513217+rancher-security-bot@users.noreply.github.com> Date: Wed, 12 Jul 2023 08:56:29 +0000 Subject: [PATCH] Replace 3rd party action with native CLI --- .github/workflows/label-all-new-issues.yml | 24 ++++++++++------------ 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/label-all-new-issues.yml b/.github/workflows/label-all-new-issues.yml index 3028a1a6..e36df509 100644 --- a/.github/workflows/label-all-new-issues.yml +++ b/.github/workflows/label-all-new-issues.yml @@ -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"