Skip to content

Commit 825760e

Browse files
ci: add read-only permissions to validation workflows
Signed-off-by: Yashagarwal9798 <yashagarwal9798@gmail.com>
1 parent caf9d69 commit 825760e

4 files changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/build.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
- 'release-v*'
1313
- 'feat/*'
1414

15+
permissions:
16+
contents: read
17+
1518
env:
1619
GO_VERSION: 1.26.2
1720
NODE_VERSION: 20.19.0

.github/workflows/build_tool.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
paths:
99
- tool/**
1010

11+
permissions:
12+
contents: read
13+
1114
env:
1215
REGISTRY: ghcr.io
1316

.github/workflows/gen.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
branches: [ master ]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
code:
912
runs-on: ubuntu-24.04

.github/workflows/test.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ on:
1414
concurrency:
1515
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
1616
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
17+
18+
permissions:
19+
contents: read
20+
1721
env:
1822
GO_VERSION: 1.26.2
1923
NODE_VERSION: 20.19.0

0 commit comments

Comments
 (0)