Skip to content

Commit 6470861

Browse files
authored
enhance: update workflow setting (#3527)
1 parent 09aa77b commit 6470861

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/documentation.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
workflow_dispatch:
77

88
permissions:
9-
contents: write
9+
contents: read
1010

1111
jobs:
1212
docs:
1313
runs-on: ubuntu-latest
14+
permissions:
15+
contents: write
1416

1517
steps:
1618
- name: Harden the runner (Audit all outbound calls)

.github/workflows/pre_commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ on:
1414
- "docs/**/*.rst"
1515
- "LICENSE"
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
pre-commit:
1922
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)