Skip to content

Commit 659f398

Browse files
authored
[LOW] security(ci): limit workflow token permissions (#1144)
1 parent 2bc3009 commit 659f398

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

‎.github/workflows/pull-request.yml‎

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

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

‎.github/workflows/release.yml‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,6 @@ jobs:
1111
permissions:
1212
contents: write
1313
id-token: write
14-
issues: write
15-
repository-projects: write
16-
deployments: write
17-
packages: write
1814
pull-requests: write
1915

2016
steps:

0 commit comments

Comments
 (0)