Skip to content

Commit

Permalink
Pin actions and explicitly set permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
yoannchaudet committed Dec 23, 2024
1 parent 8a57655 commit 7c48cd8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/cibuild.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
on: push
name: cibuild

permissions:
contents: read

jobs:
build:
name: Test
Expand All @@ -10,7 +14,7 @@ jobs:
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
- uses: ruby/setup-ruby@540484a3c0f308b08619664ec40bf6c371d172c3 # v1.205.0
with:
ruby-version: ${{ matrix.ruby }}
- name: script/cibuild
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/pages-gem.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,17 @@ on:
release:
types: [released]

permissions:
contents: read

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@540484a3c0f308b08619664ec40bf6c371d172c3 # v1.205.0
with:
ruby-version: "3.3"
- name: Build gem
Expand Down

0 comments on commit 7c48cd8

Please sign in to comment.