Skip to content

Commit

Permalink
AI code review github action tweaking (#1519)
Browse files Browse the repository at this point in the history
* bootstrapping

* attempting to run against variables files only

* monitor common vars only

* files in common folder

* rollback

* changing scanning path/file

* changing version to hash

* updating trigger

* trimming it down

* Update ai-code-scanner.yml

Just deleting the trigger for now

* Use the forked cds action instead of original one

* Tweaked the AI code review github action for this TF repo

---------

Co-authored-by: Michael Pond <[email protected]>
Co-authored-by: Mike Pond <[email protected]>
  • Loading branch information
3 people authored Sep 9, 2024
1 parent 209b87a commit 45a0a59
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/ai-code-scanner.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: AI Code Review

on:
pull_request:
types:
- opened
- synchronize

jobs:
ai_code_review:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: AI Code Review
uses: cds-snc/cds-ai-codereviewer@main
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_MODEL: ${{ vars.OPENAI_API_MODEL }}
OPENAI_API_VERSION: ${{ vars.OPENAI_API_VERSION }}
OPENAI_BASE_URL: ${{ vars.OPENAI_BASE_URL }}
exclude: "*lock*,.env"
include: "**/*.md,**/*.hcl,**/*.sh,**/*.tf,**/*.txt,**/*.yml"

0 comments on commit 45a0a59

Please sign in to comment.