Skip to content

Commit ec5db15

Browse files
CopilotPhantomDave
andcommitted
Add explicit permissions to workflows for security
Co-authored-by: PhantomDave <34485699+PhantomDave@users.noreply.github.com>
1 parent cad2e09 commit ec5db15

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/backend-api.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
build-and-lint:
2121
name: Build and Lint Backend API
2222
runs-on: ubuntu-latest
23+
permissions:
24+
contents: read
2325

2426
steps:
2527
- name: Checkout code

.github/workflows/backend-data.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
build-and-lint:
2121
name: Build and Lint Backend Data
2222
runs-on: ubuntu-latest
23+
permissions:
24+
contents: read
2325

2426
steps:
2527
- name: Checkout code

.github/workflows/backend-library.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
build-and-lint:
1919
name: Build and Lint Backend Library
2020
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
2123

2224
steps:
2325
- name: Checkout code

.github/workflows/frontend.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616
build-and-lint:
1717
name: Build and Lint Frontend
1818
runs-on: ubuntu-latest
19+
permissions:
20+
contents: read
1921

2022
steps:
2123
- name: Checkout code

0 commit comments

Comments
 (0)