From 161a3e08b13a208be6c8b14d07512da863287984 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Date: Wed, 8 Mar 2023 18:29:26 +0100 Subject: [PATCH 1/2] chore: use GH_AUTOMATIONS_PAT instead of GH_PROJECT_AUTOMATION_AUTH Signed-off-by: Jorge Turrado --- .github/workflows/auto-add-issues-to-project.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-add-issues-to-project.yml b/.github/workflows/auto-add-issues-to-project.yml index ee78a056..c867b294 100644 --- a/.github/workflows/auto-add-issues-to-project.yml +++ b/.github/workflows/auto-add-issues-to-project.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Get project data env: - GITHUB_TOKEN: ${{ secrets.GH_PROJECT_AUTOMATION_AUTH }} + GITHUB_TOKEN: ${{ secrets.GH_AUTOMATIONS_PAT }} ORGANIZATION: kedacore # This refers to our backlog project: https://github.com/orgs/kedacore/projects/6/views/1 PROJECT_NUMBER: 6 @@ -34,7 +34,7 @@ jobs: echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV - name: Add issue to project env: - GITHUB_TOKEN: ${{ secrets.GH_PROJECT_AUTOMATION_AUTH }} + GITHUB_TOKEN: ${{ secrets.GH_AUTOMATIONS_PAT }} ISSUE_ID: ${{ github.event.issue.node_id }} run: | item_id="$( gh api graphql -f query=' From d78c47328b94ff05eea30082faf6db5cb81d1454 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Ferrero Date: Thu, 9 Mar 2023 20:46:54 +0100 Subject: [PATCH 2/2] Apply suggestions from code review Co-authored-by: Tom Kerkhove Signed-off-by: Jorge Turrado Ferrero --- .github/workflows/auto-add-issues-to-project.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/auto-add-issues-to-project.yml b/.github/workflows/auto-add-issues-to-project.yml index c867b294..3ca15222 100644 --- a/.github/workflows/auto-add-issues-to-project.yml +++ b/.github/workflows/auto-add-issues-to-project.yml @@ -9,7 +9,7 @@ jobs: steps: - name: Get project data env: - GITHUB_TOKEN: ${{ secrets.GH_AUTOMATIONS_PAT }} + GITHUB_TOKEN: ${{ secrets.GH_AUTOMATION_PAT }} ORGANIZATION: kedacore # This refers to our backlog project: https://github.com/orgs/kedacore/projects/6/views/1 PROJECT_NUMBER: 6 @@ -34,7 +34,7 @@ jobs: echo 'PROJECT_ID='$(jq '.data.organization.projectV2.id' project_data.json) >> $GITHUB_ENV - name: Add issue to project env: - GITHUB_TOKEN: ${{ secrets.GH_AUTOMATIONS_PAT }} + GITHUB_TOKEN: ${{ secrets.GH_AUTOMATION_PAT }} ISSUE_ID: ${{ github.event.issue.node_id }} run: | item_id="$( gh api graphql -f query='