Skip to content

Commit 2040fb4

Browse files
Merge pull request #2 from Checkmarx/add-ai-code-review
Add AI code review workflow (AST-000)
2 parents ddee7f1 + 1ce1450 commit 2040fb4

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Code Review with OpenAI
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
open_ai_model:
7+
description: 'OpenAi Model'
8+
required: false
9+
default: 'gpt-4-1106-preview'
10+
type: string
11+
exclude_pattern:
12+
description: 'Files Pattern To Exclude'
13+
required: false
14+
default: ''
15+
type: string
16+
17+
permissions: write-all
18+
jobs:
19+
code_review:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- name: Checkout repository
23+
uses: actions/checkout@v3
24+
- name: Code Review
25+
uses: aidar-freeed/ai-codereviewer@a9a064dfa1db8c83f40ef63f6e247fa09c935ed6 #main-22.1.25
26+
with:
27+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
29+
OPENAI_API_MODEL: ${{ inputs.open_ai_model }}
30+
exclude: ${{ inputs.exclude_pattern }}

0 commit comments

Comments
 (0)