Skip to content

Commit 8049d6d

Browse files
committed
Improve workflows security and output formatting.
1 parent d76dd11 commit 8049d6d

File tree

4 files changed

+21
-3
lines changed

4 files changed

+21
-3
lines changed

.github/workflows/coverage.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,12 @@ name: Coverage
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
58
env:
6-
COVERAGE: PartialSummary
79
CONSOLE_OUTPUT: Text
10+
COVERAGE: PartialSummary
811

912
jobs:
1013
test:

.github/workflows/development.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@ name: Development
22

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
8+
env:
9+
CONSOLE_OUTPUT: Text
10+
511
jobs:
612
test:
713
name: ${{matrix.ruby}} on ${{matrix.os}}
@@ -18,7 +24,6 @@ jobs:
1824
- "3.1"
1925

2026
experimental: [false]
21-
env: [""]
2227

2328
include:
2429
- os: ubuntu
@@ -40,4 +45,4 @@ jobs:
4045

4146
- name: Run tests
4247
timeout-minutes: 5
43-
run: ${{matrix.env}} bundle exec rspec
48+
run: bundle exec rspec

.github/workflows/documentation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: write
10+
811
env:
12+
CONSOLE_OUTPUT: Text
913
BUNDLE_WITH: maintenance
1014

1115
jobs:

.github/workflows/external.yml

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

33
on: [push, pull_request]
44

5+
permissions:
6+
contents: read
7+
8+
env:
9+
CONSOLE_OUTPUT: Text
10+
511
jobs:
612
test:
713
name: ${{matrix.ruby}} on ${{matrix.os}}

0 commit comments

Comments
 (0)