From e310ffd5d02c25f876be26aea7f0d342a67adb76 Mon Sep 17 00:00:00 2001 From: kenherring Date: Sun, 29 Mar 2026 04:25:54 -0400 Subject: [PATCH 1/8] actions: debug pull_request_target --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 282c4056..2ff69618 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,7 +25,7 @@ jobs: runs-on: ubuntu-latest steps: - name: validate user - # if: ${{ github.event_name == "pull_request_target" }} + if: ${{ github.event_name == "pull_request_target" }} run: | echo "github.actor=${{ github.actor }}" if [ "${{ github.actor }}" != "kenherring" ] && [ "${{ github.actor }}" != "dependabot[bot]" ]; then From 648c76a3a5206928d5393606667450531eec179b Mon Sep 17 00:00:00 2001 From: kenherring Date: Sun, 29 Mar 2026 04:27:10 -0400 Subject: [PATCH 2/8] actions: debug pull_request_target --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 2ff69618..669bd962 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -25,11 +25,11 @@ jobs: runs-on: ubuntu-latest steps: - name: validate user - if: ${{ github.event_name == "pull_request_target" }} + # if: ${{ github.event_name == "pull_request_target" }} run: | echo "github.actor=${{ github.actor }}" if [ "${{ github.actor }}" != "kenherring" ] && [ "${{ github.actor }}" != "dependabot[bot]" ]; then - echo "Unauthorized user. Exiting." + echo "Unauthorized user. Stopping workflow run..." exit 1 fi - name: debug-vars From 2ff3fa0a8abea06ee3a0374be7a9ecffd2e7b13e Mon Sep 17 00:00:00 2001 From: kenherring Date: Mon, 30 Mar 2026 20:37:19 -0400 Subject: [PATCH 3/8] actions: debug pull_request_target --- .github/workflows/preflight.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/preflight.yml diff --git a/.github/workflows/preflight.yml b/.github/workflows/preflight.yml new file mode 100644 index 00000000..625184de --- /dev/null +++ b/.github/workflows/preflight.yml @@ -0,0 +1,31 @@ +name: Preflight + +on: + pull_request: + branches: + - main + pull_request_target: + branches: + - main + +jobs: + preflight: + runs-on: ubuntu-latest + steps: + - name: validate user + # if: ${{ github.event_name == "pull_request_target" }} + run: | + echo "github.actor=${{ github.actor }}" + if [ "${{ github.actor }}" != "kenherring" ] && [ "${{ github.actor }}" != "dependabot[bot]" ]; then + echo "Unauthorized user. Stopping workflow run..." + exit 1 + fi + - name: debug-vars + run: | + echo "github.event_name=${{ github.event_name }}" + echo "github.head_ref=${{ github.head_ref }}" + echo "github.actor=${{ github.actor }}" + echo "github.event.issue.number=${{ github.event.issue.number }}" + echo "github.event.pull_request.base.ref=${{ ithub.event.pull_request.base.ref }}" + env | sort + exit 1 From c3ac3eebde591a0674a26e978789152535fb1a1b Mon Sep 17 00:00:00 2001 From: kenherring Date: Mon, 30 Mar 2026 20:38:44 -0400 Subject: [PATCH 4/8] actions: debug pull_request_target --- .github/workflows/main.yml | 2 +- .github/workflows/preflight.yml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 669bd962..e0fa9988 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -38,7 +38,7 @@ jobs: echo "github.head_ref=${{ github.head_ref }}" echo "github.actor=${{ github.actor }}" echo "github.event.issue.number=${{ github.event.issue.number }}" - echo "github.event.pull_request.base.ref=${{ ithub.event.pull_request.base.ref }}" + echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}" env | sort exit 1 - uses: actions/checkout@v6 diff --git a/.github/workflows/preflight.yml b/.github/workflows/preflight.yml index 625184de..af234989 100644 --- a/.github/workflows/preflight.yml +++ b/.github/workflows/preflight.yml @@ -26,6 +26,5 @@ jobs: echo "github.head_ref=${{ github.head_ref }}" echo "github.actor=${{ github.actor }}" echo "github.event.issue.number=${{ github.event.issue.number }}" - echo "github.event.pull_request.base.ref=${{ ithub.event.pull_request.base.ref }}" + echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}" env | sort - exit 1 From 1ddac8749ee551eab76a399cbd1af9a48233acf4 Mon Sep 17 00:00:00 2001 From: kenherring Date: Mon, 30 Mar 2026 20:40:26 -0400 Subject: [PATCH 5/8] actions: debug pull_request_target --- .github/workflows/preflight.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/preflight.yml b/.github/workflows/preflight.yml index af234989..1d14d827 100644 --- a/.github/workflows/preflight.yml +++ b/.github/workflows/preflight.yml @@ -25,6 +25,7 @@ jobs: echo "github.event_name=${{ github.event_name }}" echo "github.head_ref=${{ github.head_ref }}" echo "github.actor=${{ github.actor }}" + echo "github.event=${{ github.event }}" echo "github.event.issue.number=${{ github.event.issue.number }}" echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}" env | sort From 2d7c370ec91fe36e0d03f3a53e0f51a97f2f5139 Mon Sep 17 00:00:00 2001 From: kenherring Date: Mon, 30 Mar 2026 20:42:38 -0400 Subject: [PATCH 6/8] actions: debug pull_request_target --- .github/workflows/preflight.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preflight.yml b/.github/workflows/preflight.yml index 1d14d827..43a579cf 100644 --- a/.github/workflows/preflight.yml +++ b/.github/workflows/preflight.yml @@ -25,7 +25,7 @@ jobs: echo "github.event_name=${{ github.event_name }}" echo "github.head_ref=${{ github.head_ref }}" echo "github.actor=${{ github.actor }}" - echo "github.event=${{ github.event }}" + echo "github.event=${{ toString(github.event) }}" echo "github.event.issue.number=${{ github.event.issue.number }}" echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}" env | sort From ae9a239f88d41bac04e121cfbf63894d6ee2cc27 Mon Sep 17 00:00:00 2001 From: kenherring Date: Mon, 30 Mar 2026 20:43:28 -0400 Subject: [PATCH 7/8] actions: debug pull_request_target --- .github/workflows/preflight.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preflight.yml b/.github/workflows/preflight.yml index 43a579cf..44db72a2 100644 --- a/.github/workflows/preflight.yml +++ b/.github/workflows/preflight.yml @@ -25,7 +25,7 @@ jobs: echo "github.event_name=${{ github.event_name }}" echo "github.head_ref=${{ github.head_ref }}" echo "github.actor=${{ github.actor }}" - echo "github.event=${{ toString(github.event) }}" + echo "github.event=${{ toJson(github.event) }}" echo "github.event.issue.number=${{ github.event.issue.number }}" echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}" env | sort From 2cd96204d54d0118164638a34d2212069d24fb1b Mon Sep 17 00:00:00 2001 From: kenherring Date: Mon, 30 Mar 2026 20:45:31 -0400 Subject: [PATCH 8/8] actions: debug pull_request_target --- .github/workflows/main.yml | 4 ++-- .github/workflows/preflight.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e0fa9988..3f6f9cf7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -37,7 +37,7 @@ jobs: echo "github.event_name=${{ github.event_name }}" echo "github.head_ref=${{ github.head_ref }}" echo "github.actor=${{ github.actor }}" - echo "github.event.issue.number=${{ github.event.issue.number }}" + echo "github.event.number=${{ github.event.number }}" echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}" env | sort exit 1 @@ -99,7 +99,7 @@ jobs: with: args: > -Dsonar.pullrequest.branch=${{ github.head_ref }} - -Dsonar.pullrequest.key=${{ github.event.issue.number }} + -Dsonar.pullrequest.key=${{ github.event.number }} -Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }} - uses: actions/upload-artifact@v7 if: ${{ matrix.oe-version == '12.8.1' }} diff --git a/.github/workflows/preflight.yml b/.github/workflows/preflight.yml index 44db72a2..8c5df82d 100644 --- a/.github/workflows/preflight.yml +++ b/.github/workflows/preflight.yml @@ -26,6 +26,6 @@ jobs: echo "github.head_ref=${{ github.head_ref }}" echo "github.actor=${{ github.actor }}" echo "github.event=${{ toJson(github.event) }}" - echo "github.event.issue.number=${{ github.event.issue.number }}" + echo "github.event.number=${{ github.event.number }}" echo "github.event.pull_request.base.ref=${{ github.event.pull_request.base.ref }}" env | sort