From d636b7139d373f3957ca13b50d035c728c2609cf Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Wed, 11 Dec 2024 13:14:03 +0200 Subject: [PATCH 1/3] Use a PAT token instead --- .github/workflows/recurrent-get-billing-data.yaml | 4 ++-- .github/workflows/recurrent-regenerate-smce-creds-issue.yaml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/recurrent-get-billing-data.yaml b/.github/workflows/recurrent-get-billing-data.yaml index e33261cd7..7cbe51eb7 100644 --- a/.github/workflows/recurrent-get-billing-data.yaml +++ b/.github/workflows/recurrent-get-billing-data.yaml @@ -23,7 +23,7 @@ jobs: --title "[Billing] Dedicated clusters: collect billing data for $NEXT_MONTH" \ --body "$BODY" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.PROJECT_BOARD_PAT_TOKEN }} GH_REPO: ${{ github.repository }} NEXT_MONTH: ${{ env.next_month }} BODY: | @@ -41,7 +41,7 @@ jobs: --title "[Billing] Shared clusters: collect billing data for $NEXT_MONTH" \ --body "$BODY" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.PROJECT_BOARD_PAT_TOKEN }} GH_REPO: ${{ github.repository }} NEXT_MONTH: ${{ env.next_month }} BODY: | diff --git a/.github/workflows/recurrent-regenerate-smce-creds-issue.yaml b/.github/workflows/recurrent-regenerate-smce-creds-issue.yaml index e2f4aa9a2..4dba76add 100644 --- a/.github/workflows/recurrent-regenerate-smce-creds-issue.yaml +++ b/.github/workflows/recurrent-regenerate-smce-creds-issue.yaml @@ -26,7 +26,7 @@ jobs: --title "[$DEADLINE] Regenerate SMCE credentials" \ --body "$BODY" env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_TOKEN: ${{ secrets.GEO_PAT }} GH_REPO: ${{ github.repository }} DEADLINE: ${{ env.deadline }} BODY: | From dd2a8bc6f4c86890e3c7550f785be3f5877151c1 Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Wed, 11 Dec 2024 13:17:07 +0200 Subject: [PATCH 2/3] Check only labels --- .github/workflows/project-board-update.yml | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/.github/workflows/project-board-update.yml b/.github/workflows/project-board-update.yml index fcff1ff8f..521eb85e0 100644 --- a/.github/workflows/project-board-update.yml +++ b/.github/workflows/project-board-update.yml @@ -3,15 +3,10 @@ on: issues: types: - labeled - # Issues opened by recurrent workflows don't trigger a labeled event - # so we check opened issues as well - - opened jobs: update-project-board-fields: - if: > - (github.event.action == "opened" && contains(github.event.issue.labels.*.name, "recurrent")) || - (github.event.action == "labeled" && github.event.label.name == "recurrent") + if: github.event.label.name == 'recurrent' runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 From a0b3e9be86415b0aaa14d5683367aa694f7595d0 Mon Sep 17 00:00:00 2001 From: Georgiana Dolocan Date: Wed, 11 Dec 2024 13:18:46 +0200 Subject: [PATCH 3/3] Use bot pat rather than personal --- .github/workflows/recurrent-regenerate-smce-creds-issue.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/recurrent-regenerate-smce-creds-issue.yaml b/.github/workflows/recurrent-regenerate-smce-creds-issue.yaml index 4dba76add..4e265fd44 100644 --- a/.github/workflows/recurrent-regenerate-smce-creds-issue.yaml +++ b/.github/workflows/recurrent-regenerate-smce-creds-issue.yaml @@ -26,7 +26,7 @@ jobs: --title "[$DEADLINE] Regenerate SMCE credentials" \ --body "$BODY" env: - GH_TOKEN: ${{ secrets.GEO_PAT }} + GH_TOKEN: ${{ secrets.PROJECT_BOARD_PAT_TOKEN }} GH_REPO: ${{ github.repository }} DEADLINE: ${{ env.deadline }} BODY: |