Skip to content

Commit

Permalink
Tighten up some auto-reported security issues
Browse files Browse the repository at this point in the history
- pin an external Action to a specific hash (which in this case is what
`setup-ruby` has versioned as v1.190.0)
- explicitly specify permissions
  • Loading branch information
Joyce Zhu committed Aug 6, 2024
1 parent 91f9477 commit 7d3dc63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request:

permissions:
contents: write
pull-requests: write

jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -18,7 +22,7 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@a6e6f86333f0a2523ece813039b8b4be04560854
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
Expand Down

0 comments on commit 7d3dc63

Please sign in to comment.