From aee44e2d386d324fa6f83c06c12205f6114589d1 Mon Sep 17 00:00:00 2001 From: Jorge Turrado Ferrero Date: Mon, 13 Mar 2023 18:39:22 +0100 Subject: [PATCH] chore: use GH_AUTOMATION_PAT instead of GH_PROJECT_AUTOMATION_AUTH (#627)Co-authored-by: Tom Kerkhove * chore: use GH_AUTOMATIONS_PAT instead of GH_PROJECT_AUTOMATION_AUTH Signed-off-by: Jorge Turrado * Apply suggestions from code review Co-authored-by: Tom Kerkhove Signed-off-by: Jorge Turrado Ferrero --------- Signed-off-by: Jorge Turrado Signed-off-by: Jorge Turrado Ferrero Co-authored-by: Tom Kerkhove --- .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..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_PROJECT_AUTOMATION_AUTH }} + 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_PROJECT_AUTOMATION_AUTH }} + GITHUB_TOKEN: ${{ secrets.GH_AUTOMATION_PAT }} ISSUE_ID: ${{ github.event.issue.node_id }} run: | item_id="$( gh api graphql -f query='