Skip to content

Commit abb113d

Browse files
authored
Set explicit permissions for GitHub Actions workflows (#356)
1 parent 0b82baf commit abb113d

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.github/workflows/build-gems.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- main
66
- "releases/*"
77

8+
permissions:
9+
contents: read
10+
actions: write
11+
812
jobs:
913
build-platform-gems:
1014
runs-on: ubuntu-latest

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
- "releases/*"
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build-lint-test:
1114
strategy:

.github/workflows/run-bench.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: Run Bench
2-
on:
3-
workflow_call:
4-
workflow_dispatch:
5-
6-
jobs:
7-
run-bench:
2+
on:
3+
workflow_call:
4+
workflow_dispatch:
5+
6+
permissions:
7+
contents: read
8+
9+
jobs:
10+
run-bench:
811
runs-on: ubuntu-latest-4-cores
912
defaults:
1013
run:
@@ -47,4 +50,4 @@ jobs:
4750
- run: bundle exec ruby extra/simple_bench.rb --workflow-count 10000 --max-cached-workflows 10000 --max-concurrent 10000
4851

4952
- run: bundle exec ruby extra/simple_bench.rb --workflow-count 10000 --max-cached-workflows 1000 --max-concurrent 1000
50-
- run: bundle exec ruby extra/simple_bench.rb --workflow-count 10000 --max-cached-workflows 1000 --max-concurrent 1000
53+
- run: bundle exec ruby extra/simple_bench.rb --workflow-count 10000 --max-cached-workflows 1000 --max-concurrent 1000

0 commit comments

Comments
 (0)