Skip to content

Commit

Permalink
Update genai-investigator workflow with new script and permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 26, 2024
1 parent 513a708 commit 445be02
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/genai-investigator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types:
- completed
permissions:
contents: read
actions: read
pull-requests: write
jobs:
Expand All @@ -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 }}

0 comments on commit 445be02

Please sign in to comment.