From 23e6c01036d778b7768d1952c4b40cb185701bf4 Mon Sep 17 00:00:00 2001 From: Fran Mulero Date: Mon, 29 Aug 2022 19:40:32 +0200 Subject: [PATCH] [bitnami/*]Use github token to reduce the number of labeled events (#4453) Use explicitly GITHUB_TOKEN Signed-off-by: Fran Mulero Signed-off-by: Fran Mulero --- .github/workflows/ci-automated-pipeline.yaml | 1 + .github/workflows/comments.yml | 1 + .github/workflows/move-closed-issues.yml | 2 +- .github/workflows/moving-cards.yml | 3 +++ .github/workflows/triage.yml | 1 + 5 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-automated-pipeline.yaml b/.github/workflows/ci-automated-pipeline.yaml index 4412a7d8ba5f..d128aa52d366 100644 --- a/.github/workflows/ci-automated-pipeline.yaml +++ b/.github/workflows/ci-automated-pipeline.yaml @@ -25,6 +25,7 @@ jobs: name: Label PR uses: andymckay/labeler@1.0.4 with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" add-labels: "verify, auto-merge" - id: auto-merge name: Enable auto-merge diff --git a/.github/workflows/comments.yml b/.github/workflows/comments.yml index 69a6768573d5..6c68a601c1d1 100644 --- a/.github/workflows/comments.yml +++ b/.github/workflows/comments.yml @@ -51,5 +51,6 @@ jobs: if: ${{ contains(github.event.issue.labels.*.name, 'solved') }} uses: andymckay/labeler@1.0.4 with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" add-labels: "triage" remove-labels: "solved" \ No newline at end of file diff --git a/.github/workflows/move-closed-issues.yml b/.github/workflows/move-closed-issues.yml index bb66aa2cc268..d1505fe53f9a 100644 --- a/.github/workflows/move-closed-issues.yml +++ b/.github/workflows/move-closed-issues.yml @@ -41,6 +41,6 @@ jobs: # Only if moved into Solved uses: andymckay/labeler@1.0.4 with: - repo-token: "${{ secrets.BITNAMI_BOT_TOKEN }}" + repo-token: "${{ secrets.GITHUB_TOKEN }}" add-labels: "solved" remove-labels: "in-progress, on-hold, triage" \ No newline at end of file diff --git a/.github/workflows/moving-cards.yml b/.github/workflows/moving-cards.yml index a1aa0565b7e4..1cd474a111fb 100644 --- a/.github/workflows/moving-cards.yml +++ b/.github/workflows/moving-cards.yml @@ -33,6 +33,7 @@ jobs: if: ${{ github.event.project_card.column_id == env.ON_HOLD_COLUMN_ID }} uses: andymckay/labeler@1.0.4 with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" add-labels: "on-hold" remove-labels: "triage" - name: In progress labeling @@ -40,6 +41,7 @@ jobs: if: ${{ github.event.project_card.column_id == env.IN_PROGRESS_COLUMN_ID }} uses: andymckay/labeler@1.0.4 with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" add-labels: "in-progress" remove-labels: "on-hold, triage" - name: Solved labeling @@ -47,6 +49,7 @@ jobs: if: ${{ github.event.project_card.column_id == env.SOLVED_COLUMN_ID }} uses: andymckay/labeler@1.0.4 with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" add-labels: "solved" remove-labels: "in-progress, on-hold, triage" assign-assignee-if-needed: diff --git a/.github/workflows/triage.yml b/.github/workflows/triage.yml index 0d34d0bd751b..ef66f807e375 100644 --- a/.github/workflows/triage.yml +++ b/.github/workflows/triage.yml @@ -51,6 +51,7 @@ jobs: # Only if moved into Solved uses: andymckay/labeler@1.0.4 with: + repo-token: "${{ secrets.GITHUB_TOKEN }}" add-labels: ${{ (!contains(fromJson(env.BITNAMI_TEAM), github.actor)) && 'triage' || 'bitnami' }} # For reopened issues remove-labels: "solved" \ No newline at end of file