Skip to content

Commit a67a9b3

Browse files
Copilothotlong
andcommitted
security: Add explicit permissions to workflow jobs
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
1 parent eaea999 commit a67a9b3

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ jobs:
1111
name: Build and Type Check
1212
runs-on: ubuntu-latest
1313

14+
permissions:
15+
contents: read
16+
1417
strategy:
1518
matrix:
1619
node-version: [18.x, 20.x]

.github/workflows/code-quality.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ jobs:
1010
runs-on: ubuntu-latest
1111
if: github.event_name == 'pull_request'
1212

13+
permissions:
14+
contents: read
15+
1316
steps:
1417
- name: Checkout code
1518
uses: actions/checkout@v4

0 commit comments

Comments
 (0)