Skip to content

Commit 36916f0

Browse files
authored
GitHub Workflows security hardening (#1451)
1 parent 4024f4d commit 36916f0

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ env:
1111
GIT_BRANCH: ${{ github.ref }}
1212
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
1313

14+
permissions:
15+
contents: read # to fetch code (actions/checkout)
16+
1417
jobs:
1518
linting:
1619
runs-on: ubuntu-latest

.github/workflows/publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
release:
55
types: [published]
66

7+
permissions:
8+
contents: read # to checkout the code (actions/checkout)
79
jobs:
810
build:
911
name: Publish to Rubygems

.github/workflows/refresh_team_page.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
push:
55
branches: [ main ]
66

7+
permissions: {}
78
jobs:
89
build:
910
name: Refresh Contributors Stats

0 commit comments

Comments
 (0)