Skip to content

Commit c4a5c4e

Browse files
committed
fix: 添加权限设置以确保工作流可以读取内容
1 parent af988b9 commit c4a5c4e

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/docker-image.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
pull_request:
99
branches: [ "master" ]
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
build-and-push:
1316
runs-on: ubuntu-latest

.github/workflows/pylint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Pylint
22

33
on: [push]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
build:
710
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)