Skip to content

Commit 8f49701

Browse files
authored
Merge pull request #380 from berachain/cifix032026
fixing CI security issue
2 parents 0ae5a36 + 1ba60ca commit 8f49701

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/validate.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Validate
33
on:
44
pull_request_target:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
schema:
811
runs-on: ubuntu-latest
@@ -49,10 +52,12 @@ jobs:
4952
runs-on: ubuntu-latest
5053

5154
steps:
55+
- uses: actions/checkout@v4
5256
- uses: actions/checkout@v4
5357
with:
5458
repository: ${{ github.event.pull_request.head.repo.full_name }}
5559
ref: ${{ github.event.pull_request.head.ref }}
60+
path: ./head
5661

5762
- name: Setup Node.js
5863
uses: actions/setup-node@v4
@@ -81,7 +86,7 @@ jobs:
8186
run: pnpm install
8287

8388
- name: Lint Check
84-
run: pnpx @biomejs/biome@2.0.0 ci
89+
run: pnpx @biomejs/biome@2.0.0 ci ./head
8590

8691
data-consistency:
8792
needs: schema

0 commit comments

Comments
 (0)