diff --git a/.github/workflows/genai-investigator.yml b/.github/workflows/genai-investigator.yml index fd5f9bfdf1..7c4475e6fb 100644 --- a/.github/workflows/genai-investigator.yml +++ b/.github/workflows/genai-investigator.yml @@ -5,6 +5,7 @@ on: types: - completed permissions: + contents: read actions: read pull-requests: write jobs: @@ -23,5 +24,10 @@ jobs: - run: yarn install --frozen-lockfile - name: compile run: yarn compile - - name: genai investigator - run: yarn genai gai -prc --vars "failure_run_id=${{ github.event.workflow_run.id }}" --out-trace $GITHUB_STEP_SUMMARY + - name: genaiscript gai + run: node packages/cli/built/genaiscript.cjs run gai -prc --vars "failure_run_id=${{ github.event.workflow_run.id }}" --out-trace $GITHUB_STEP_SUMMARY + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} + OPENAI_API_TYPE: ${{ secrets.OPENAI_API_TYPE }} + OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}