Skip to content

Commit 7c48cd8

Browse files
committed
Pin actions and explicitly set permissions
1 parent 8a57655 commit 7c48cd8

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/cibuild.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
on: push
22
name: cibuild
3+
4+
permissions:
5+
contents: read
6+
37
jobs:
48
build:
59
name: Test
@@ -10,7 +14,7 @@ jobs:
1014
runs-on: ${{ matrix.os }}
1115
steps:
1216
- uses: actions/checkout@v4
13-
- uses: ruby/setup-ruby@v1
17+
- uses: ruby/setup-ruby@540484a3c0f308b08619664ec40bf6c371d172c3 # v1.205.0
1418
with:
1519
ruby-version: ${{ matrix.ruby }}
1620
- name: script/cibuild

.github/workflows/pages-gem.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,17 @@ on:
44
release:
55
types: [released]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
release:
912
runs-on: ubuntu-latest
1013
steps:
1114
- name: Checkout
1215
uses: actions/checkout@v4
1316
- name: Setup Ruby
14-
uses: ruby/setup-ruby@v1
17+
uses: ruby/setup-ruby@540484a3c0f308b08619664ec40bf6c371d172c3 # v1.205.0
1518
with:
1619
ruby-version: "3.3"
1720
- name: Build gem

0 commit comments

Comments
 (0)