feat: ci permissions (#589)

This commit is contained in:
Matt 2023-07-10 17:18:34 +01:00 committed by GitHub
parent 80d53b96d3
commit a6658cdaee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,9 @@ on:
pull_request:
branches: [main]
permissions:
pull-requests: write
jobs:
build:
runs-on: ubuntu-latest
@ -24,7 +27,7 @@ jobs:
- name: Run code review script
run: npx code-review-gpt --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_SHA: ${{ github.sha }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_SHA: ${{ github.event.pull_request.base.sha }}
GITHUB_SHA: ${{ github.sha }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}