From 7a6f25a34d0960678eef00ca12815fb683f3a221 Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Thu, 20 Nov 2025 12:49:25 -0500 Subject: [PATCH 1/2] Import inputs into env Instead of raw input from workflow_dispatch, import those inputs into the environment before using. --- .github/workflows/quest-bulk.yml | 4 +++- .github/workflows/quest.yml | 15 ++++++++++----- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/quest-bulk.yml b/.github/workflows/quest-bulk.yml index 60db1feaeaff..a3c2d7b6d3d8 100644 --- a/.github/workflows/quest-bulk.yml +++ b/.github/workflows/quest-bulk.yml @@ -27,7 +27,9 @@ jobs: - name: "Print manual bulk import run reason" if: ${{ github.event_name == 'workflow_dispatch' }} run: | - echo "Reason: ${{ github.event.inputs.reason }}" + echo "Reason: $REASON" + env: + REASON: ${{ github.event.inputs.reason }} - name: Azure OpenID Connect id: azure-oidc-auth diff --git a/.github/workflows/quest.yml b/.github/workflows/quest.yml index af869c31b542..3c79bbf9bea0 100644 --- a/.github/workflows/quest.yml +++ b/.github/workflows/quest.yml @@ -28,9 +28,12 @@ jobs: - name: "Print manual run reason" if: ${{ github.event_name == 'workflow_dispatch' }} run: | - echo "Reason: ${{ github.event.inputs.reason }}" - echo "Issue number: ${{ github.event.inputs.issue }}" - + echo "Reason: $REASON" + echo "Issue number: $ISSUENUMBER" + env: + REASON: ${{ github.event.inputs.reason }} + ISSUENUMBER: ${{ github.event.inputs.issue }} +I - name: Azure OpenID Connect id: azure-oidc-auth uses: dotnet/docs-tools/.github/actions/oidc-auth-flow@main @@ -50,10 +53,11 @@ jobs: ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }} ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }} ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }} + ISSUENUMBER: ${{ github.event.inputs.issue }} with: org: ${{ github.repository_owner }} repo: ${{ github.repository }} - issue: ${{ github.event.inputs.issue }} + issue: $ISSUENUMBER # This step occurs automatically, passing the issue number from the event - name: auto-sequester @@ -66,7 +70,8 @@ jobs: ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }} ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }} ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }} + ISSUENUMBER: ${{ github.event.inputs.issue }} with: org: ${{ github.repository_owner }} repo: ${{ github.repository }} - issue: ${{ github.event.issue.number }} + issue: $ISSUENUMBER From 0eeeff4d9d831625bcb0107ecfb2ae7ff9b3e94b Mon Sep 17 00:00:00 2001 From: Bill Wagner Date: Thu, 20 Nov 2025 14:12:17 -0500 Subject: [PATCH 2/2] Apply suggestions from code review --- .github/workflows/quest.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/quest.yml b/.github/workflows/quest.yml index 3c79bbf9bea0..4e6c1dc0a2e9 100644 --- a/.github/workflows/quest.yml +++ b/.github/workflows/quest.yml @@ -53,11 +53,10 @@ I ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }} ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }} ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }} - ISSUENUMBER: ${{ github.event.inputs.issue }} with: org: ${{ github.repository_owner }} repo: ${{ github.repository }} - issue: $ISSUENUMBER + issue: ${{ github.event.inputs.issue }} # This step occurs automatically, passing the issue number from the event - name: auto-sequester @@ -70,8 +69,7 @@ I ImportOptions__ApiKeys__QuestKey: ${{ secrets.QUEST_KEY }} ImportOptions__ApiKeys__SequesterPrivateKey: ${{ secrets.SEQUESTER_PRIVATEKEY }} ImportOptions__ApiKeys__SequesterAppID: ${{ secrets.SEQUESTER_APPID }} - ISSUENUMBER: ${{ github.event.inputs.issue }} with: org: ${{ github.repository_owner }} repo: ${{ github.repository }} - issue: $ISSUENUMBER + issue: ${{ github.event.issue.number }}