Skip to content

Commit f8c99fc

Browse files
ci: Add explicit permissions to workflows (#73)
1 parent 8d967ff commit f8c99fc

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
@@ -23,6 +23,9 @@ env:
2323
POSTGRES_PASSWORD: postgres
2424
POSTGRES_DB: postgres
2525

26+
permissions:
27+
contents: read
28+
2629
jobs:
2730
lint:
2831
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
@@ -18,6 +18,9 @@ concurrency:
1818
group: lint-markdown-${{ github.head_ref || github.ref }}
1919
cancel-in-progress: true
2020

21+
permissions:
22+
contents: read
23+
2124
jobs:
2225
lint-markdown:
2326
name: Lint Markdown Files

.github/workflows/lint-yaml.yml

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

21+
permissions:
22+
contents: read
23+
2124
jobs:
2225
lint-yaml:
2326
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)