chore: fixed Token-Permissions for Actions (#3517)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2024-09-18 16:34:48 +08:00 committed by GitHub
parent 79bd59a8e0
commit ae9f8dfc9e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 24 additions and 24 deletions

View File

@ -6,6 +6,9 @@ on:
pull_request:
branches: [main, release-*]
permissions:
contents: read
env:
GO_VERSION: '1.21'

View File

@ -10,11 +10,17 @@ on:
schedule:
- cron: '0 4 * * *'
permissions:
contents: read
jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
permissions:
security-events: write
strategy:
fail-fast: false
matrix:

View File

@ -10,6 +10,9 @@ on:
schedule:
- cron: '0 4 * * *'
permissions:
contents: read
env:
KIND_VERSION: v0.12.0
CONTAINERD_VERSION: v1.5.2

View File

@ -10,6 +10,9 @@ on:
schedule:
- cron: '0 4 * * *'
permissions:
contents: read
env:
KIND_VERSION: v0.12.0
CONTAINERD_VERSION: v1.5.2

View File

@ -1,24 +0,0 @@
name: Code Review
permissions:
contents: read
pull-requests: write
on:
pull_request:
types: [opened, reopened, synchronize]
branches:
- 'code-review'
jobs:
chatgpt_code_review:
runs-on: ubuntu-latest
steps:
- name: ChatGPT Code Review
uses: anc95/ChatGPT-CodeReview@main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
LANGUAGE: English
top_p: 1
temperature: 1

View File

@ -10,6 +10,9 @@ on:
schedule:
- cron: '0 4 * * *'
permissions:
contents: read
env:
KIND_VERSION: v0.12.0
CONTAINERD_VERSION: v1.5.2

View File

@ -10,6 +10,9 @@ on:
schedule:
- cron: '0 4 * * *'
permissions:
contents: read
env:
GO_VERSION: '1.21'
KIND_VERSION: v0.12.0

View File

@ -10,6 +10,9 @@ on:
schedule:
- cron: '0 4 * * *'
permissions:
contents: read
env:
KIND_VERSION: v0.12.0
CONTAINERD_VERSION: v1.5.2