Skip to content

Commit b9e341a

Browse files
ericproulxclaude
andauthored
Call Danger's workflows from danger/danger-pr-comment (#3090)
numbata/danger-pr-comment moved to the danger organization and was archived, frozen at the tags Grape called, so it gets no further releases or fixes. Grape now calls the same workflows from danger/danger-pr-comment at v0.3.0, which matches the danger-pr-comment gem the Danger bundle already installs. The comment caller grants what v0.3.0's comment workflow asks for, which no longer includes contents: read. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent dabdbe5 commit b9e341a

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎.github/workflows/danger-comment.yml‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@ on:
77

88
jobs:
99
comment:
10-
uses: numbata/danger-pr-comment/.github/workflows/danger-comment.yml@6152b4436901a31e3ebbf09152ae182282487a75 # v0.2.0
10+
uses: danger/danger-pr-comment/.github/workflows/danger-comment.yml@645e89bcc7be89ee7e8362166110b05cbced8e59 # v0.3.0
1111
# What the called workflow asks for. It needs no secret but the token.
1212
permissions:
13-
contents: read
1413
actions: read
1514
issues: write
1615
pull-requests: write

‎.github/workflows/danger.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66

77
jobs:
88
danger:
9-
uses: numbata/danger-pr-comment/.github/workflows/danger-run.yml@6152b4436901a31e3ebbf09152ae182282487a75 # v0.2.0
9+
uses: danger/danger-pr-comment/.github/workflows/danger-run.yml@645e89bcc7be89ee7e8362166110b05cbced8e59 # v0.3.0
1010
# What the called workflow asks for. It needs no secret but the token.
1111
permissions:
1212
contents: read

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
* [#3062](https://github.com/ruby-grape/grape/pull/3062): Use the reusable Danger workflow with a separate Gemfile - [@dblock](https://github.com/dblock).
1111
* [#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).
1212
* [#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).
13+
* [#3090](https://github.com/ruby-grape/grape/pull/3090): Call Danger's workflows from danger/danger-pr-comment, where they moved - [@ericproulx](https://github.com/ericproulx).
1314
* Your contribution here.
1415

1516
#### Fixes

0 commit comments

Comments
 (0)