Skip to content

Commit 61f9dba

Browse files
chore: Potential fix for code scanning alert no. 1: Workflow does not contain permissions (#39)
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent 9fad2f6 commit 61f9dba

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: ['*'] # 触发所有目标分支的 PR
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
check-and-build:
1114
runs-on: ${{ matrix.os }}

0 commit comments

Comments
 (0)