Skip to content

Commit 82e8de1

Browse files
committed
set least privilege
1 parent f64c0b4 commit 82e8de1

File tree

6 files changed

+12
-12
lines changed

6 files changed

+12
-12
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19-
# Declare default permissions as read only
20-
permissions: read-all
19+
permissions:
20+
contents: read
2121

2222
jobs:
2323
build:

.github/workflows/codeql.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ on:
88
branches:
99
- main
1010

11-
# Declare default permissions as read only
12-
permissions: read-all
11+
permissions:
12+
contents: read
1313

1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.ref }}

.github/workflows/markdown.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ concurrency:
1313
group: ${{ github.workflow }}-${{ github.ref }}
1414
cancel-in-progress: true
1515

16-
# Declare default permissions as read only
17-
permissions: read-all
16+
permissions:
17+
contents: read
1818

1919
jobs:
2020
linter:

.github/workflows/mkdocs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19-
# Declare default permissions as read only
20-
permissions: read-all
19+
permissions:
20+
contents: read
2121

2222
jobs:
2323
build:

.github/workflows/scorecard.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ on:
1111
push:
1212
branches: [ "main" ]
1313

14-
# Declare default permissions as read-only.
15-
permissions: read-all
14+
permissions:
15+
contents: read
1616

1717
jobs:
1818
analysis:

.github/workflows/tpip.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ concurrency:
1616
group: ${{ github.workflow }}-${{ github.ref }}
1717
cancel-in-progress: true
1818

19-
# Declare default permissions as read only
20-
permissions: read-all
19+
permissions:
20+
contents: read
2121

2222
jobs:
2323
report:

0 commit comments

Comments
 (0)