Skip to content

Commit 0ae4bfa

Browse files
Copilothsluoyz
andcommitted
Add workflow permissions for security best practices
Co-authored-by: hsluoyz <3787410+hsluoyz@users.noreply.github.com>
1 parent 3788dfa commit 0ae4bfa

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

.github/workflows/benchmark.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Benchmarks
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
benchmark:
710
runs-on: ubuntu-latest

.github/workflows/ci.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: CI
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
lint:
710
runs-on: ubuntu-latest
@@ -22,6 +25,9 @@ jobs:
2225
coverage:
2326
needs: [lint]
2427
runs-on: ubuntu-latest
28+
permissions:
29+
contents: read
30+
pull-requests: write
2531
steps:
2632
- uses: actions/checkout@v3
2733

.github/workflows/platform_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Platform Test
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
reactjs:
710
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)