Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
54 changes: 54 additions & 0 deletions .github/workflows/ExtReqImplementDispatch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: ExtReqImplementDispatch

# Template workflow for the SOURCE issue repository (for example
# microsoft/ALAppExtensions). When the guard label is added to an open issue,
# this workflow starts the target fix workflow in microsoft/BCAppsBugFix.
#
# Move this file to the source repository and configure:
# - secrets.EXT_REQ_DISPATCH_TOKEN (PAT with access to target repo)

on:
issues:
types: [labeled]

permissions:
contents: read

concurrency:
group: ai-ext-fix-dispatch-${{ github.repository }}-${{ github.event.issue.number }}
cancel-in-progress: false

env:
FIX_LABEL: ext-ready-to-implement
TARGET_REPO: microsoft/BCAppsBugFix
TARGET_WORKFLOW: ExtReqImplement.yaml
TARGET_REF: main

jobs:
dispatch:
if: >-
github.event.issue.state == 'open' &&
github.event.label.name == env.FIX_LABEL
runs-on: ubuntu-latest
steps:
- name: Validate PAT secret
env:
GH_TOKEN: ${{ secrets.EXT_REQ_DISPATCH_TOKEN }}
run: |
set -euo pipefail
if [ -z "${GH_TOKEN:-}" ]; then
echo "EXT_REQ_DISPATCH_TOKEN is required." >&2
exit 1
fi

- name: Start the target fix workflow
env:
GH_TOKEN: ${{ secrets.EXT_REQ_DISPATCH_TOKEN }}
SOURCE_REPO: ${{ github.repository }}
ISSUE_NUMBER: ${{ github.event.issue.number }}
run: |
set -euo pipefail
gh workflow run "$TARGET_WORKFLOW" -R "$TARGET_REPO" --ref "$TARGET_REF" \
-f source_repo="$SOURCE_REPO" \
-f issue_number="$ISSUE_NUMBER" \
-f label="$FIX_LABEL"
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ jobs:
# ── Step 3: Log telemetry ────────────────────────────────────────────────
- name: Azure login (OIDC)
if: steps.detect.outputs.skip == 'false' && steps.context.outputs.skip == 'false'
uses: azure/login@v2
uses: azure/login@v3
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/argus-extensibility-triage-scheduled.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ jobs:
run: chmod +x _triage-src/internal/Argus_Triage_Extensibility_Requests/scripts/process-issue.sh

- name: Azure login (OIDC)
uses: azure/login@v2
uses: azure/login@v3
with:
client-id: ${{ secrets.AZURE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
Expand All @@ -180,7 +180,7 @@ jobs:

- name: Upload result artifact
if: always()
uses: actions/upload-artifact@v5
uses: actions/upload-artifact@v7
with:
name: argus-result-${{ github.run_id }}-issue-${{ matrix.issue }}
path: _triage-src/internal/Argus_Triage_Extensibility_Requests/data/argus_result.json
Expand Down
Loading