Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Keeps the actions and reusable workflows that .github/workflows pins to
# commits up to date, with their version comments. A release is proposed once
# it is a week old, so that a compromised one has time to be caught and pulled.
version: 2
updates:
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
cooldown:
default-days: 7
groups:
github-actions:
patterns: ['*']
9 changes: 7 additions & 2 deletions .github/workflows/danger-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,10 @@ on:

jobs:
comment:
uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@v0.1.0
secrets: inherit
uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@34fd37617a87c09a408c39646d871cd3b6135eb9 # v0.1.0
# What the called workflow asks for. It needs no secret but the token.
permissions:
contents: read
actions: read
issues: write
pull-requests: write
6 changes: 4 additions & 2 deletions .github/workflows/danger.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@ on:

jobs:
danger:
uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@v0.2.0
secrets: inherit
uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@6152b4436901a31e3ebbf09152ae182282487a75 # v0.2.0
# What the called workflow asks for. It needs no secret but the token.
permissions:
contents: read
with:
ruby-version: '3.4'
gemfile: gemfiles/danger.gemfile
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/edge.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
---
name: edge
on: workflow_dispatch
permissions:
contents: read
jobs:
test:
strategy:
Expand All @@ -13,10 +15,10 @@ jobs:
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@be3c7df29b3349ec6bcfc6b4792f1cf9f5237d18 # v1.343.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
Expand All @@ -25,7 +27,7 @@ jobs:
run: "RUBYOPT='--enable=frozen-string-literal' bundle exec rspec"

- name: Coveralls
uses: coverallsapp/github-action@v2
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.ruby }}-${{ matrix.gemfile }}
Expand All @@ -36,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
15 changes: 9 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@ name: test

on: [push, pull_request]

permissions:
contents: read

jobs:
lint:
name: RuboCop
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@be3c7df29b3349ec6bcfc6b4792f1cf9f5237d18 # v1.343.0
with:
ruby-version: 3.4
bundler-cache: true
Expand Down Expand Up @@ -60,10 +63,10 @@ jobs:
env:
BUNDLE_GEMFILE: ${{ github.workspace }}/${{ matrix.gemfile }}
steps:
- uses: actions/checkout@v6
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0

- name: Set up Ruby
uses: ruby/setup-ruby@v1
uses: ruby/setup-ruby@be3c7df29b3349ec6bcfc6b4792f1cf9f5237d18 # v1.343.0
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
Expand All @@ -72,7 +75,7 @@ jobs:
run: "RUBYOPT='--enable=frozen-string-literal' bundle exec rspec ${{ matrix.specs }}"

- name: Coveralls
uses: coverallsapp/github-action@v2
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.ruby }}-${{ matrix.gemfile }}
Expand All @@ -83,7 +86,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
uses: coverallsapp/github-action@8d6379e14d29928660c4ba802d8e85393440b329 # v2.3.8
with:
github-token: ${{ secrets.github_token }}
parallel-finished: true
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* [#3056](https://github.com/ruby-grape/grape/pull/3056): Drop support for Rails 7.2 and require ActiveSupport 8.0 - [@ericproulx](https://github.com/ericproulx).
* [#3062](https://github.com/ruby-grape/grape/pull/3062): Use the reusable Danger workflow with a separate Gemfile - [@dblock](https://github.com/dblock).
* [#3063](https://github.com/ruby-grape/grape/pull/3063): Drop support for Rack 2.2 and 3.0 and require Rack 3.1 - [@ericproulx](https://github.com/ericproulx).
* [#3088](https://github.com/ruby-grape/grape/pull/3088): Pin workflow actions to commits and grant their tokens only what they need - [@ericproulx](https://github.com/ericproulx).
* Your contribution here.

#### Fixes
Expand Down
Loading