Skip to content

Commit f64c0b4

Browse files
committed
Added default WF permission to read-only
1 parent 147ce9d commit f64c0b4

File tree

5 files changed

+16
-11
lines changed

5 files changed

+16
-11
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-
permissions:
20-
contents: read
19+
# Declare default permissions as read only
20+
permissions: read-all
2121

2222
jobs:
2323
build:

.github/workflows/codeql.yml

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

11-
permissions:
12-
actions: read
13-
checks: write
14-
contents: read
15-
security-events: write
11+
# Declare default permissions as read only
12+
permissions: read-all
1613

1714
concurrency:
1815
group: ${{ github.workflow }}-${{ github.ref }}
@@ -22,6 +19,11 @@ jobs:
2219
analyze:
2320
name: Analyze
2421
runs-on: ubuntu-latest
22+
permissions:
23+
actions: read
24+
checks: write
25+
contents: read
26+
security-events: write
2527

2628
steps:
2729
- name: Harden the runner (Audit all outbound calls)

.github/workflows/markdown.yml

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

16+
# Declare default permissions as read only
17+
permissions: read-all
18+
1619
jobs:
1720
linter:
1821
name: Lint Markdown Files

.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-
permissions:
20-
contents: read
19+
# Declare default permissions as read only
20+
permissions: read-all
2121

2222
jobs:
2323
build:

.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-
permissions:
20-
contents: read
19+
# Declare default permissions as read only
20+
permissions: read-all
2121

2222
jobs:
2323
report:

0 commit comments

Comments
 (0)