From 54073e4ff5c83184b1139b65fed089d20e092a8e Mon Sep 17 00:00:00 2001 From: Jeremy Parr-Pearson <94406158+jeremyp-bq@users.noreply.github.com> Date: Fri, 16 Sep 2022 13:30:18 -0700 Subject: [PATCH] GitHub automation fails to move issues (#500) * Replace GITHUB_TOKEN with personal access token * Add executable bit to scripts --- .github/workflows/auto-triage.yml | 9 +++------ .github/workflows/remove-issue.yml | 9 +++------ examples/pyspark/sparkapp.py | 0 examples/scala/submit-examples-debug.sh | 0 examples/scala/submit-examples-kerberos.sh | 0 examples/scala/submit-examples.sh | 0 functional-tests/default-config.sh | 0 functional-tests/submit-functional-tests-debug.sh | 0 8 files changed, 6 insertions(+), 12 deletions(-) mode change 100644 => 100755 examples/pyspark/sparkapp.py mode change 100644 => 100755 examples/scala/submit-examples-debug.sh mode change 100644 => 100755 examples/scala/submit-examples-kerberos.sh mode change 100644 => 100755 examples/scala/submit-examples.sh mode change 100644 => 100755 functional-tests/default-config.sh mode change 100644 => 100755 functional-tests/submit-functional-tests-debug.sh diff --git a/.github/workflows/auto-triage.yml b/.github/workflows/auto-triage.yml index dff7e899c..6d1325ff9 100644 --- a/.github/workflows/auto-triage.yml +++ b/.github/workflows/auto-triage.yml @@ -4,9 +4,6 @@ on: types: - labeled workflow_dispatch: -permissions: - issues: write - repository-projects: write jobs: move-low-priority: if: github.event.label.name == 'Low Priority' @@ -16,7 +13,7 @@ jobs: with: project: Backlog column: Low Priority - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} move-normal-priority: if: github.event.label.name == 'Normal Priority' @@ -26,7 +23,7 @@ jobs: with: project: Backlog column: Normal Priority - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} move-high-priority: if: github.event.label.name == 'High Priority' @@ -36,4 +33,4 @@ jobs: with: project: Backlog column: High Priority - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} diff --git a/.github/workflows/remove-issue.yml b/.github/workflows/remove-issue.yml index 4700978eb..7c223cf3f 100644 --- a/.github/workflows/remove-issue.yml +++ b/.github/workflows/remove-issue.yml @@ -4,9 +4,6 @@ on: types: - closed workflow_dispatch: -permissions: - issues: write - repository-projects: write jobs: remove-low-priority: if: contains(github.event.issue.labels.*.name, 'Low Priority') @@ -16,7 +13,7 @@ jobs: with: project: Backlog column: Low Priority - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} action: delete remove-normal-priority: @@ -27,7 +24,7 @@ jobs: with: project: Backlog column: Normal Priority - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} action: delete remove-high-priority: @@ -38,5 +35,5 @@ jobs: with: project: Backlog column: High Priority - repo-token: ${{ secrets.GITHUB_TOKEN }} + repo-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} action: delete diff --git a/examples/pyspark/sparkapp.py b/examples/pyspark/sparkapp.py old mode 100644 new mode 100755 diff --git a/examples/scala/submit-examples-debug.sh b/examples/scala/submit-examples-debug.sh old mode 100644 new mode 100755 diff --git a/examples/scala/submit-examples-kerberos.sh b/examples/scala/submit-examples-kerberos.sh old mode 100644 new mode 100755 diff --git a/examples/scala/submit-examples.sh b/examples/scala/submit-examples.sh old mode 100644 new mode 100755 diff --git a/functional-tests/default-config.sh b/functional-tests/default-config.sh old mode 100644 new mode 100755 diff --git a/functional-tests/submit-functional-tests-debug.sh b/functional-tests/submit-functional-tests-debug.sh old mode 100644 new mode 100755