Skip to content

Commit dc6b5cf

Browse files
ci: Add explicit permissions to workflows (#87)
1 parent fa8747c commit dc6b5cf

7 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/check-typo.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ concurrency:
1414
group: check-typo-${{ github.head_ref || github.ref }}
1515
cancel-in-progress: true
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
check-typo:
1922
name: Check Typo using codespell

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ concurrency:
1616
group: ci-${{ github.head_ref || github.ref }}
1717
cancel-in-progress: true
1818

19+
permissions:
20+
contents: read
21+
1922
jobs:
2023
lint:
2124
name: Lint

.github/workflows/lint-bash.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ concurrency:
1717
group: lint-bash-${{ github.head_ref || github.ref }}
1818
cancel-in-progress: true
1919

20+
permissions:
21+
contents: read
22+
2023
jobs:
2124
lint-bash:
2225
name: Lint Bash Scripts

.github/workflows/lint-format.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ concurrency:
1414
group: lint-format-${{ github.head_ref || github.ref }}
1515
cancel-in-progress: true
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
lint-format:
1922
name: Lint File Endings & Trailing Whitespaces

.github/workflows/lint-markdown.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ concurrency:
2121
group: lint-markdown-${{ github.head_ref || github.ref }}
2222
cancel-in-progress: true
2323

24+
permissions:
25+
contents: read
26+
2427
jobs:
2528
lint-markdown:
2629
name: Lint Markdown Files

.github/workflows/lint-yaml.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ concurrency:
2020
group: lint-yaml-${{ github.head_ref || github.ref }}
2121
cancel-in-progress: true
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
lint-yaml:
2528
name: Lint YAML Files

.github/workflows/schema-compat.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ concurrency:
2525
env:
2626
PARADEDB_VERSION: ${{ inputs.version || github.event.client_payload.version }}
2727

28+
permissions:
29+
contents: read
30+
issues: write
31+
2832
jobs:
2933
schema-compat:
3034
name: Check Schema Compatibility

0 commit comments

Comments
 (0)