Skip to content

Commit 1361d07

Browse files
authored
fix(forge): apply correct permission scoping in workflow templates (#11986)
correct permission scoping
1 parent e5078c5 commit 1361d07

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

crates/forge/assets/solidity/workflowTemplate.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: CI
22

3-
permissions:
4-
contents: read
3+
permissions: {}
54

65
on:
76
push:
@@ -15,6 +14,8 @@ jobs:
1514
check:
1615
name: Foundry project
1716
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
1819
steps:
1920
- uses: actions/checkout@v5
2021
with:

crates/forge/assets/vyper/workflowTemplate.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
name: CI
22

3-
permissions:
4-
contents: read
3+
permissions: {}
54

65
on:
76
push:
@@ -15,6 +14,8 @@ jobs:
1514
check:
1615
name: Foundry project
1716
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
1819
steps:
1920
- uses: actions/checkout@v5
2021
with:

0 commit comments

Comments
 (0)