Skip to content

OfficeRuntime.auth.getAccessToken is failing in Excel Online #79

OfficeRuntime.auth.getAccessToken is failing in Excel Online

OfficeRuntime.auth.getAccessToken is failing in Excel Online #79

name: LLM Issue Analyzer
on:
issues:
types: [opened]
workflow_dispatch:
jobs:
analyze_issues:
runs-on: ubuntu-latest
# Modified condition to include comment events
if: github.event_name == 'workflow_dispatch' ||
(github.event_name == 'issues' && github.event.action == 'opened')
permissions:
issues: write
contents: read
id-token: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Azure Login
uses: azure/login@v1
with:
client-id: ${{ secrets.ISSUE_ANALYZE_CLIENT_ID }}
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
subscription-id: ${{ secrets.ISSUE_ANALYZE_SUBSCRIPTION_ID }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install azure-identity requests
pip install langchain_openai langchain_core
- name: Analyze issue with LLM
id: analyze
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_EVENT_NAME: ${{ github.event_name }}
ISSUE_NUMBER: ${{ github.event_name == 'issue_comment' && github.event.issue.number || github.event.issue.number || '' }}
REPO_OWNER: ${{ github.repository_owner }}
REPO_NAME: ${{ github.repository }}
run: |
python issue-scripts/analyze_issue.py