Skip to content

Commit c776949

Browse files
Copilothuangyiirene
andcommitted
Add explicit GITHUB_TOKEN permissions to workflows for security
Co-authored-by: huangyiirene <7665279+huangyiirene@users.noreply.github.com>
1 parent 93eea7a commit c776949

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
build:
1313
name: Build and Test
1414
runs-on: ubuntu-latest
15+
permissions:
16+
contents: read
1517

1618
steps:
1719
- name: Checkout code

.github/workflows/link-check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
link-check:
1616
name: Check Links
1717
runs-on: ubuntu-latest
18+
permissions:
19+
contents: read
1820

1921
steps:
2022
- name: Checkout code

.github/workflows/preview.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ jobs:
88
preview-info:
99
name: Preview Information
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
pull-requests: write
1114

1215
steps:
1316
- name: Checkout code

0 commit comments

Comments
 (0)