Skip to content

Commit aa95e5b

Browse files
committed
Restrict GitHub Actions token permissions
Add explicit workflow-level contents: read permissions to the legacy test and coveralls workflows so code scanning no longer flags the default GITHUB_TOKEN scope as unspecified.
1 parent f12c2fc commit aa95e5b

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/coveralls.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/ruby.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
strategy:

0 commit comments

Comments
 (0)