fix:Workflow does not contain permissions (#451)

This commit is contained in:
houseme
2025-08-23 12:35:23 +08:00
committed by GitHub
parent bdcba3460e
commit f1c50fcb74
5 changed files with 17 additions and 2 deletions
+3
View File
@@ -31,6 +31,9 @@ on:
- cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC - cron: '0 0 * * 0' # Weekly on Sunday at midnight UTC
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
+3
View File
@@ -70,6 +70,9 @@ on:
default: true default: true
type: boolean type: boolean
permissions:
contents: read
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
+3
View File
@@ -59,6 +59,9 @@ on:
- cron: "0 0 * * 0" # Weekly on Sunday at midnight UTC - cron: "0 0 * * 0" # Weekly on Sunday at midnight UTC
workflow_dispatch: workflow_dispatch:
permissions:
contents: read
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1
+5 -2
View File
@@ -15,9 +15,12 @@
name: "issue-translator" name: "issue-translator"
on: on:
issue_comment: issue_comment:
types: [created] types: [ created ]
issues: issues:
types: [opened] types: [ opened ]
contents: read
issues: write
jobs: jobs:
build: build:
+3
View File
@@ -30,6 +30,9 @@ on:
default: "120" default: "120"
type: string type: string
permissions:
contents: read
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
RUST_BACKTRACE: 1 RUST_BACKTRACE: 1