Skip to content

Commit 0ee38a6

Browse files
committed
Backport workflow token permission hardening
Add explicit workflow-level contents: read permissions to the current next branch CI and coverage workflows to match the master security hardening without changing job behavior.
1 parent 8d8fd3a commit 0ee38a6

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010

1111
name: Test Coveralls
1212
on: ["push", "pull_request"]
13+
permissions:
14+
contents: read
1315

1416
env:
1517
COVERAGE: true

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44

55
name: Build and Test
66
on: [push, pull_request]
7+
permissions:
8+
contents: read
79
jobs:
810
test:
911
continue-on-error: ${{ matrix.experimental }}

0 commit comments

Comments
 (0)